mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +00:00
Revert logging level to INFO and remove debug code
This commit is contained in:
@@ -9,7 +9,7 @@ from src.stock_manager import StockManager
|
|||||||
from src.stock_news_manager import StockNewsManager
|
from src.stock_news_manager import StockNewsManager
|
||||||
|
|
||||||
# Configure logging
|
# Configure logging
|
||||||
logging.basicConfig(level=logging.DEBUG, force=True)
|
logging.basicConfig(level=logging.INFO)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class DisplayController:
|
class DisplayController:
|
||||||
|
|||||||
@@ -58,15 +58,9 @@ class StockManager:
|
|||||||
# Directory exists, check if writable by trying to create a temp file
|
# Directory exists, check if writable by trying to create a temp file
|
||||||
try:
|
try:
|
||||||
temp_file_path = os.path.join(self.logo_dir, "write_test_py.tmp")
|
temp_file_path = os.path.join(self.logo_dir, "write_test_py.tmp")
|
||||||
abs_path = os.path.abspath(temp_file_path)
|
|
||||||
cwd = os.getcwd()
|
|
||||||
euid = os.geteuid()
|
|
||||||
egid = os.getegid()
|
|
||||||
logger.debug(f"Write test: UID={euid}, GID={egid}, CWD='{cwd}', Path='{abs_path}'")
|
|
||||||
with open(temp_file_path, 'w') as f:
|
with open(temp_file_path, 'w') as f:
|
||||||
f.write('test')
|
f.write('test')
|
||||||
os.remove(temp_file_path)
|
os.remove(temp_file_path)
|
||||||
logger.debug(f"Write test successful in {self.logo_dir}")
|
|
||||||
writable = True
|
writable = True
|
||||||
except (PermissionError, OSError) as e:
|
except (PermissionError, OSError) as e:
|
||||||
logger.warning(f"Cannot write to logo directory '{self.logo_dir}' (write test failed): {e}. Using temporary directory.")
|
logger.warning(f"Cannot write to logo directory '{self.logo_dir}' (write test failed): {e}. Using temporary directory.")
|
||||||
|
|||||||
Reference in New Issue
Block a user