minor fixes and todos

This commit is contained in:
msramalho
2025-02-14 13:07:25 +00:00
parent b7b259909a
commit 1a3078055b
3 changed files with 4 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ from app.web.utils.metrics import EXCEPTION_COUNTER
async def logging_middleware(request: Request, call_next):
try:
response = await call_next(request)
#TODO: use Origin to have summary prometheus metrics on where requests come from
# origin = request.headers.get("origin")
logger.info(f"{request.client.host}:{request.client.port} {request.method} {request.url._url} - HTTP {response.status_code}")
return response
except Exception as e: