Skip to content

Commit

Permalink
added logging middleware: fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebyshev committed Jan 11, 2024
1 parent 2858be6 commit cc83f93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shvatka/api/middlewares/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ class LoggingMiddleware:
async def __call__(self, request: Request, call_next) -> Response:
logger.debug("got request. url: %s, headers: %s", request.url, request.headers)
response = await call_next(request)
logger.debug("response will be: status: %s, headers: %s", response.status_code, response.headers)
logger.debug(
"response will be: status: %s, headers: %s", response.status_code, response.headers
)
return response

0 comments on commit cc83f93

Please sign in to comment.