mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +00:00
fix: change calendar manager logging to DEBUG and add font initialization logging
This commit is contained in:
@@ -16,7 +16,7 @@ import time
|
|||||||
|
|
||||||
# Configure logger for this module
|
# Configure logger for this module
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logger.setLevel(logging.INFO) # Set to INFO to reduce noise
|
logger.setLevel(logging.DEBUG) # Set to DEBUG to see font details
|
||||||
|
|
||||||
class CalendarManager:
|
class CalendarManager:
|
||||||
def __init__(self, display_manager, config):
|
def __init__(self, display_manager, config):
|
||||||
@@ -33,6 +33,12 @@ class CalendarManager:
|
|||||||
self.events = []
|
self.events = []
|
||||||
self.service = None
|
self.service = None
|
||||||
|
|
||||||
|
# Log font information during initialization
|
||||||
|
logger.debug(f"Display Manager fonts:")
|
||||||
|
logger.debug(f" Small font: {self.display_manager.small_font}")
|
||||||
|
logger.debug(f" Calendar font: {self.display_manager.calendar_font}")
|
||||||
|
logger.debug(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}")
|
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
|
# Get timezone from config
|
||||||
|
|||||||
Reference in New Issue
Block a user