mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
reduce logging noise
This commit is contained in:
@@ -977,9 +977,9 @@ class MLBRecentManager(BaseMLBManager):
|
|||||||
def update(self):
|
def update(self):
|
||||||
"""Update recent games data."""
|
"""Update recent games data."""
|
||||||
current_time = time.time()
|
current_time = time.time()
|
||||||
self.logger.info("Checking for recent MLB games...")
|
self.logger.info(f"Checking for recent MLB games. Last update was at {self.last_update}")
|
||||||
if current_time - self.last_update < self.update_interval:
|
if self.last_update != 0 and (current_time - self.last_update < self.update_interval):
|
||||||
self.logger.info("Skipping recent games update, interval not reached.")
|
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
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -1090,9 +1090,9 @@ class MLBUpcomingManager(BaseMLBManager):
|
|||||||
def update(self):
|
def update(self):
|
||||||
"""Update upcoming games data."""
|
"""Update upcoming games data."""
|
||||||
current_time = time.time()
|
current_time = time.time()
|
||||||
self.logger.info("Checking for upcoming MLB games...")
|
self.logger.info(f"Checking for upcoming MLB games. Last update was at {self.last_update}")
|
||||||
if current_time - self.last_update < self.update_interval:
|
if self.last_update != 0 and (current_time - self.last_update < self.update_interval):
|
||||||
self.logger.info("Skipping upcoming games update, interval not reached.")
|
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
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user