We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfbd258 commit 19cfceeCopy full SHA for 19cfcee
fastapi_elasticsearch_middleware/elasticsearch_middleware.py
@@ -74,7 +74,7 @@ async def intercept_send(response):
74
log_data["response"]["body"] = str(response.get('body')) if 'body' in response.keys() else None
75
76
self.log_to_elasticsearch(log_data)
77
- log_data.clear()
+ log_data["response"] = {}
78
79
if response['type'] == 'http.response.start': # Request part
80
0 commit comments