mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
refactor: update logging configuration to INFO level and enhance font logging
This commit is contained in:
@@ -16,7 +16,7 @@ import time
|
||||
|
||||
# Configure logger for this module
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.DEBUG) # Set to DEBUG to see font details
|
||||
logger.setLevel(logging.INFO) # Set to INFO level
|
||||
|
||||
class CalendarManager:
|
||||
def __init__(self, display_manager, config):
|
||||
@@ -33,9 +33,13 @@ class CalendarManager:
|
||||
self.events = []
|
||||
self.service = None
|
||||
|
||||
# Log font information during initialization only
|
||||
if self.enabled:
|
||||
logger.info(f"Calendar configuration: enabled={self.enabled}, update_interval={self.update_interval}, max_events={self.max_events}, calendars={self.calendars}")
|
||||
# Log font information during initialization
|
||||
logger.info(f"Display Manager fonts:")
|
||||
logger.info(f" Small font: {self.display_manager.small_font}")
|
||||
logger.info(f" Calendar font: {self.display_manager.calendar_font}")
|
||||
logger.info(f" Font types - Small: {type(self.display_manager.small_font)}, Calendar: {type(self.display_manager.calendar_font)}")
|
||||
|
||||
logger.info(f"Calendar configuration: enabled={self.enabled}, update_interval={self.update_interval}, max_events={self.max_events}, calendars={self.calendars}")
|
||||
|
||||
# Get timezone from config
|
||||
self.config_manager = ConfigManager()
|
||||
|
||||
@@ -10,6 +10,7 @@ import freetype
|
||||
|
||||
# Get logger without configuring
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.INFO) # Set to INFO level
|
||||
|
||||
class DisplayManager:
|
||||
_instance = None
|
||||
|
||||
Reference in New Issue
Block a user