mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +00:00
Add detailed logging for MLB API response and status_final games
This commit is contained in:
@@ -204,7 +204,7 @@ class BaseMLBManager:
|
|||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
|
||||||
data = response.json()
|
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 = {}
|
games = {}
|
||||||
|
|
||||||
@@ -272,6 +272,12 @@ class BaseMLBManager:
|
|||||||
[game['away_team'] for game in games.values()])
|
[game['away_team'] for game in games.values()])
|
||||||
self.logger.info(f"Found teams in API response: {found_teams}")
|
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
|
return games
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user