Skip to content

Commit

Permalink
Use the config hostname instead of querying the socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Sullivan committed Nov 13, 2023
1 parent 692ea3a commit 5dc0af0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions elastic_datashader/routers/tms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from datetime import datetime, timezone
from os import getpid
from socket import gethostname
from typing import Optional
import time
import uuid
Expand Down Expand Up @@ -111,7 +110,7 @@ def create_datashader_tiles_entry(es, **kwargs) -> None:
'''
doc_info = {
**kwargs,
'host': gethostname(),
'host': config.hostname,
'pid': getpid(),
'timestamp': datetime.now(timezone.utc),
}
Expand Down

0 comments on commit 5dc0af0

Please sign in to comment.