VisionSystemsInc / terra

Terra - Run your algorithm anywhere on earth
MIT License
0 stars 3 forks source link

dynamic logging_hostname #59

Closed drewgilliam closed 4 years ago

drewgilliam commented 4 years ago

dynamic settings logging_hostname and environment variable TERRA_RESOLVE_HOSTNAME that attempts to resolve the IP of the default route on the host as per https://stackoverflow.com/a/28950776. This optional setting can overcome situations where the logging module fails to resolve the hostname, resulting in missing service & task logs from terra_log

By default, we maintain current operation of hostname == platform.node(). User must explicitly enable resolution by setting TERRA_RESOLVE_HOSTNAME=1.