reduce logging noise

This commit is contained in:
Chuck
2025-07-19 17:12:57 -05:00
parent 72e10e06d4
commit c9ab9a339b

View File

@@ -988,9 +988,7 @@ class MLBRecentManager(BaseMLBManager):
def update(self):
"""Update recent games data."""
current_time = time.time()
self.logger.info(f"Checking for recent MLB games. Last update was at {self.last_update}")
if self.last_update != 0 and (current_time - self.last_update < self.update_interval):
self.logger.info(f"Skipping recent games update, interval not reached. Next update in {self.update_interval - (current_time - self.last_update):.0f} seconds.")
return
try:
@@ -1107,9 +1105,7 @@ class MLBUpcomingManager(BaseMLBManager):
def update(self):
"""Update upcoming games data."""
current_time = time.time()
self.logger.info(f"Checking for upcoming MLB games. Last update was at {self.last_update}")
if self.last_update != 0 and (current_time - self.last_update < self.update_interval):
self.logger.info(f"Skipping upcoming games update, interval not reached. Next update in {self.update_interval - (current_time - self.last_update):.0f} seconds.")
return
try: