small fix in logging and supporting both granian/gunicorn

This commit is contained in:
badblocks 2025-04-29 12:10:34 -07:00
parent 8d316f07ce
commit 411c274e56
2 changed files with 2 additions and 1 deletions

View file

@ -14,5 +14,5 @@ class LogRequestsMiddleware:
return response
def log(self, request, response, start, end):
logging.info(f"{request.method} {request.path_info} -> {response.status_code}, took {end - start}s")
logging.info(f"{request.method} {request.path_info} -> RESP {response.status_code}, took {end - start}s")