Skip to content

Commit b4547d6

Browse files
committed
fix: KeyError: 'request' in line 125
1 parent cab32bd commit b4547d6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fastapi_elasticsearch_middleware/elasticsearch_middleware.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ async def intercept_receive():
134134
def log_to_elasticsearch(self, log_data) -> None:
135135
try:
136136
self.elasticsearch_client.index(index=self.index, body=log_data)
137-
log_data.clear()
138137
except Exception as e:
139138
logging.error(f"Failed to log to Elasticsearch: {str(e)}")
140139

0 commit comments

Comments
 (0)