diff --git a/src/main.py b/src/main.py index a7f56c5..8e43a68 100644 --- a/src/main.py +++ b/src/main.py @@ -65,7 +65,7 @@ async def prometheus_middleware(request: Request, call_next): response = await call_next(request) status = response.status_code logger.debug(f"Request processed with status {status}") - except Exception: + except Exception as e: logger.exception(f"Exception during request processing: {e}") raise finally: