feat(lotto): _shared/access_log install (Phase 1 PoC)

This commit is contained in:
2026-05-28 02:37:19 +09:00
parent f461f05ac0
commit fe4d3912a5

View File

@@ -5,6 +5,7 @@ from typing import Optional, List, Dict, Any, Tuple
from fastapi import FastAPI, HTTPException from fastapi import FastAPI, HTTPException
from pydantic import BaseModel from pydantic import BaseModel
from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.schedulers.background import BackgroundScheduler
from _shared.access_log import install as install_access_log
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(name)s] %(levelname)s %(message)s") logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(name)s] %(levelname)s %(message)s")
logger = logging.getLogger("lotto-backend") logger = logging.getLogger("lotto-backend")
@@ -49,6 +50,7 @@ from .routers import review as review_router
from .jobs.grade_weekly_review import run_for_latest as grade_run_for_latest from .jobs.grade_weekly_review import run_for_latest as grade_run_for_latest
app = FastAPI() app = FastAPI()
install_access_log(app)
app.include_router(curator_router.router) app.include_router(curator_router.router)
app.include_router(briefing_router.router) app.include_router(briefing_router.router)
app.include_router(review_router.router) app.include_router(review_router.router)