mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 05:13:01 +00:00
Added debug logging to track NHL display execution path and manager selection
This commit is contained in:
@@ -145,10 +145,13 @@ class DisplayController:
|
|||||||
self.stocks.display_stocks(force_clear=self.force_clear)
|
self.stocks.display_stocks(force_clear=self.force_clear)
|
||||||
|
|
||||||
elif self.current_display_mode == 'nhl_live' and self.nhl_live:
|
elif self.current_display_mode == 'nhl_live' and self.nhl_live:
|
||||||
|
logger.info("Calling NHLLiveManager.display()")
|
||||||
self.nhl_live.display(force_clear=self.force_clear)
|
self.nhl_live.display(force_clear=self.force_clear)
|
||||||
elif self.current_display_mode == 'nhl_recent' and self.nhl_recent:
|
elif self.current_display_mode == 'nhl_recent' and self.nhl_recent:
|
||||||
|
logger.info("Calling NHLRecentManager.display()")
|
||||||
self.nhl_recent.display(force_clear=self.force_clear)
|
self.nhl_recent.display(force_clear=self.force_clear)
|
||||||
elif self.current_display_mode == 'nhl_upcoming' and self.nhl_upcoming:
|
elif self.current_display_mode == 'nhl_upcoming' and self.nhl_upcoming:
|
||||||
|
logger.info("Calling NHLUpcomingManager.display()")
|
||||||
self.nhl_upcoming.display(force_clear=self.force_clear)
|
self.nhl_upcoming.display(force_clear=self.force_clear)
|
||||||
|
|
||||||
elif self.current_display_mode == 'stock_news' and self.news:
|
elif self.current_display_mode == 'stock_news' and self.news:
|
||||||
|
|||||||
@@ -218,6 +218,7 @@ class BaseNHLManager:
|
|||||||
|
|
||||||
def display(self, force_clear: bool = False) -> None:
|
def display(self, force_clear: bool = False) -> None:
|
||||||
"""Common display method for all NHL managers"""
|
"""Common display method for all NHL managers"""
|
||||||
|
self.logger.info(f"BaseNHLManager.display() called with force_clear={force_clear}")
|
||||||
if not self.current_game:
|
if not self.current_game:
|
||||||
current_time = time.time()
|
current_time = time.time()
|
||||||
if not hasattr(self, '_last_warning_time'):
|
if not hasattr(self, '_last_warning_time'):
|
||||||
@@ -441,6 +442,7 @@ class NHLLiveManager(BaseNHLManager):
|
|||||||
|
|
||||||
def display(self, force_clear: bool = False):
|
def display(self, force_clear: bool = False):
|
||||||
"""Display live game information."""
|
"""Display live game information."""
|
||||||
|
self.logger.info("NHLLiveManager.display() called")
|
||||||
if not self.current_game:
|
if not self.current_game:
|
||||||
logging.warning("[NHL] No game data available to display")
|
logging.warning("[NHL] No game data available to display")
|
||||||
return
|
return
|
||||||
@@ -594,6 +596,7 @@ class NHLRecentManager(BaseNHLManager):
|
|||||||
|
|
||||||
def display(self, force_clear: bool = False):
|
def display(self, force_clear: bool = False):
|
||||||
"""Display recent game information."""
|
"""Display recent game information."""
|
||||||
|
self.logger.info("NHLRecentManager.display() called")
|
||||||
if not self.current_game:
|
if not self.current_game:
|
||||||
logging.warning("[NHL] No recent game data available to display")
|
logging.warning("[NHL] No recent game data available to display")
|
||||||
return
|
return
|
||||||
@@ -741,6 +744,7 @@ class NHLUpcomingManager(BaseNHLManager):
|
|||||||
|
|
||||||
def display(self, force_clear: bool = False):
|
def display(self, force_clear: bool = False):
|
||||||
"""Display upcoming game information."""
|
"""Display upcoming game information."""
|
||||||
|
self.logger.info("NHLUpcomingManager.display() called")
|
||||||
if not self.current_game:
|
if not self.current_game:
|
||||||
logging.warning("[NHL] No upcoming game data available to display")
|
logging.warning("[NHL] No upcoming game data available to display")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user