log response headers

This commit is contained in:
Robert Resch 2022-08-24 22:27:45 +02:00
parent 2282748d1a
commit 36d7c468fa

View file

@ -63,6 +63,7 @@ async def log_all_requests(request: Request, handler: Handler) -> StreamResponse
to_log["response"] = { to_log["response"] = {
"status": f"{response.status}", "status": f"{response.status}",
"headers": {h for h in response.headers.items()},
} }
if isinstance(response, Response) and response.body: if isinstance(response, Response) and response.body: