From 2eb08e2729d393276c91b0036a253f8c01ed0809 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Wed, 23 Apr 2025 14:42:12 -0500 Subject: [PATCH] fix: change calendar manager logging to DEBUG and add font initialization logging --- src/calendar_manager.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/calendar_manager.py b/src/calendar_manager.py index 2a6feec1..b4916882 100644 --- a/src/calendar_manager.py +++ b/src/calendar_manager.py @@ -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