Skip to content

Commit

Permalink
Datetime fix (#1840)
Browse files Browse the repository at this point in the history
* Opensearch introduction

* Add endpoint information to logs

* Opensearch package added

* datetime fix

---------

Co-authored-by: Valery Geraskin <[email protected]>
  • Loading branch information
Deralden and Valery Geraskin authored Aug 20, 2024
1 parent 6a3330b commit baf0a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_status/service_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _send_logs_to_opensearch(self, service_id, debug_error_string, endpoint):
ssl_assert_hostname = False,
ssl_show_warn = False,
)
timestamp = dt.datetime.now(dt.timezone.utc)
timestamp = dt.utcnow()
index_name = f"services-logs-{NETWORKS[NETWORK_ID]['name']}-{timestamp.strftime('%Y.%m.%d')}"
if not client.indices.exists(index_name):
index_body = {
Expand Down

0 comments on commit baf0a3d

Please sign in to comment.