Change log level from warning to info for hourly cap reached message in app-specific loop, improving log clarity and reducing unnecessary warning noise.

This commit is contained in:
Admin9705
2025-06-08 16:40:58 -04:00
parent c9382d4f3a
commit b2d22650c0

View File

@@ -265,7 +265,7 @@ def app_specific_loop(app_type: str) -> None:
# Get the current cap status for logging
from src.primary.stats_manager import get_hourly_cap_status
cap_status = get_hourly_cap_status(app_type)
app_logger.warning(f"{app_type.upper()} hourly cap reached {cap_status['current_usage']} of {cap_status['limit']} (app-specific limit). Skipping cycle!")
app_logger.info(f"{app_type.upper()} hourly cap reached {cap_status['current_usage']} of {cap_status['limit']} (app-specific limit). Skipping cycle!")
continue # Skip this instance if API cap is exceeded
except Exception as e:
app_logger.error(f"Error checking hourly API cap for {app_type}: {e}", exc_info=True)