taoensso / timbre

Pure Clojure/Script logging library
https://www.taoensso.com/timbre
Eclipse Public License 1.0
1.44k stars 171 forks source link

5 second delays when logging #333

Closed xfthhxk closed 3 years ago

xfthhxk commented 3 years ago

Not every time but frequently we've been seeing 5 second delays in system responses and eventually traced it to logging calls. It seems that taoensso.timbre/get-hostname tries to get the hostname once a minute and that call can block for at most 5 seconds. As a temporary work around we've replaced the var by doing:

(alter-var-root #'taoensso.timbre/get-hostname (constantly (fn [] "UnknownHost")))
ptaoussanis commented 3 years ago

Hi Amar! Please see https://github.com/ptaoussanis/timbre/issues/323 - hope that helps!

xfthhxk commented 3 years ago

Thanks Paul for the reply and the link to the other issue. We'll look into that and close this.