logging for why milb api isn't working and cache updates to odds cache storage

This commit is contained in:
Chuck
2025-08-02 20:02:52 -05:00
parent 13a2ef6e5e
commit ac69569d77
5 changed files with 15 additions and 360 deletions

View File

@@ -413,6 +413,15 @@ class BaseMiLBManager:
else:
home_record_str = ''
# --- TEMP: Comprehensive Debugging ---
self.logger.info(f"[MiLB DEBUG] Raw event data for game {game_pk}:\n{json.dumps(event, indent=2)}")
game_date = event.get('gameDate')
if not game_date:
self.logger.warning(f"Skipping game {game_pk} due to missing 'gameDate'.")
continue
# --- End of TEMP Debugging ---
is_favorite_game = (home_abbr in self.favorite_teams or away_abbr in self.favorite_teams)
if not self.favorite_teams or is_favorite_game: