From 33f4a87a64ab9c0be2453c7ea78659b0c32bcc61 Mon Sep 17 00:00:00 2001 From: seallard Date: Tue, 6 Aug 2024 10:46:43 +0200 Subject: [PATCH] logging --- genotype_api/api/middleware.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/genotype_api/api/middleware.py b/genotype_api/api/middleware.py index 59c7199..bebd769 100644 --- a/genotype_api/api/middleware.py +++ b/genotype_api/api/middleware.py @@ -8,14 +8,14 @@ class DBSessionMiddleware(BaseHTTPMiddleware): def __init__(self, app): - logger.info("Initialising DBSessionMiddleware") + logger.error("Initialising DBSessionMiddleware") super().__init__(app) async def dispatch(self, request: Request, call_next): try: - logger.info("In dispatch") + logger.error("In dispatch") response = await call_next(request) finally: - logger.info("Closing session") + logger.error("Closing session") close_session() return response