Commit remaining tracked changes

This commit is contained in:
2026-04-19 18:57:26 +02:00
parent 2274403899
commit 9373f500d3
5 changed files with 39 additions and 380 deletions

View File

@@ -6,6 +6,7 @@ configuration, middleware setup, static file serving, and Jinja2 template
integration.
"""
import asyncio
import logging
from contextlib import asynccontextmanager
from pathlib import Path
@@ -51,7 +52,7 @@ async def _check_incomplete_series_on_startup(background_loader) -> None:
Args:
background_loader: BackgroundLoaderService instance
"""
logger = setup_logging(log_level="INFO")
logger = logging.getLogger("aniworld")
try:
from src.server.database.connection import get_db_session
@@ -96,11 +97,11 @@ async def _check_incomplete_series_on_startup(background_loader) -> None:
else:
logger.info("All series data is complete. No background loading needed.")
except Exception as e:
logger.exception("Error checking incomplete series: %s", e)
except Exception:
logger.exception("Error checking incomplete series")
except Exception as e:
logger.exception("Failed to check incomplete series on startup: %s", e)
except Exception:
logger.exception("Failed to check incomplete series on startup")
@asynccontextmanager