Closed
Description
Hi,
We are trying to use this package in aws fargate. Our service crashes in the following line:
'host_ip': socket.gethostbyname(socket.gethostname())})
with this error:
socket.gaierror: [Errno -2] Name or service not known
The service is running as a task in a docker container in an unknown host (Fargate launches containers without you having to worry about the underlying ec2 instance. Something along the lines of hostname: 9e3hg54u)
I am willing to open a pull request if you would like to suggest a proper solution to this problem.
(for starters, it would be nice if the logger does not fail if it cant find an ip :))
Thanks!
Metadata
Metadata
Assignees
Labels
No labels