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 40dfa72 commit 41a73f5Copy full SHA for 41a73f5
fastapi_elasticsearch_middleware/elasticsearch_middleware.py
@@ -93,7 +93,7 @@ async def intercept_send(response):
93
start_time = time.time()
94
95
log_data = {
96
- "@timestamp": datetime.now().replace(tzinfo=timezone.utc).strftime("%Y-%m-%dT%H:%M:%S"),
+ "@timestamp": datetime.now(tz=timezone.utc).strftime("%Y-%m-%dT%H:%M:%S"),
97
"environment": self.environment,
98
"method": request.method,
99
"path": request.url.path,
0 commit comments