From a9f6889bea863f24bedf4df65f186e29998b3417 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Thu, 24 Apr 2025 20:35:08 -0500 Subject: [PATCH] Add detailed logging for MLB API response and status_final games --- src/mlb_manager.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mlb_manager.py b/src/mlb_manager.py index 18fa9057..9345cdc2 100644 --- a/src/mlb_manager.py +++ b/src/mlb_manager.py @@ -204,7 +204,7 @@ class BaseMLBManager: response.raise_for_status() data = response.json() - self.logger.debug(f"Raw API response: {data}") # Log raw response + self.logger.info(f"Raw API response: {data}") # Log raw response games = {} @@ -272,6 +272,12 @@ class BaseMLBManager: [game['away_team'] for game in games.values()]) self.logger.info(f"Found teams in API response: {found_teams}") + # Log all games with status_final + final_games = [game for game in games.values() if game['status'] == 'status_final'] + self.logger.info(f"Games with status_final: {len(final_games)}") + for game in final_games: + self.logger.info(f"Final game: {game['away_team']} @ {game['home_team']}") + return games except Exception as e: