log response headers
This commit is contained in:
parent
2282748d1a
commit
36d7c468fa
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue