diff --git a/src/main.py b/src/main.py index 544cd71..1fc4c2d 100644 --- a/src/main.py +++ b/src/main.py @@ -44,7 +44,7 @@ async def prometheus_middleware(request: Request, call_next): response = await call_next(request) status = response.status_code logger.debug(f"[Metrics] Request processed with status {status}") - except Exception: + except Exception as e: logger.error(f"[Metrics] Exception occurred: {e}", exc_info=True) raise finally: