fix: change calendar manager logging to DEBUG and add font initialization logging

This commit is contained in:
ChuckBuilds
2025-04-23 14:42:12 -05:00
parent 4da42236f6
commit 2eb08e2729

View File

@@ -16,7 +16,7 @@ import time
# Configure logger for this module
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:
def __init__(self, display_manager, config):
@@ -33,6 +33,12 @@ class CalendarManager:
self.events = []
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}")
# Get timezone from config