small fix in logging and supporting both granian/gunicorn
This commit is contained in:
parent
8d316f07ce
commit
411c274e56
2 changed files with 2 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue