mirror of https://github.com/status-im/timbre.git
Catch UnknownHostException
This commit is contained in:
parent
b3b109b08a
commit
17043d20b7
|
@ -186,7 +186,9 @@
|
||||||
|
|
||||||
(def get-hostname
|
(def get-hostname
|
||||||
(utils/memoize-ttl
|
(utils/memoize-ttl
|
||||||
60000 (fn [] (.. java.net.InetAddress getLocalHost getHostName))))
|
60000 (fn [] (try (.. java.net.InetAddress getLocalHost getHostName)
|
||||||
|
(catch java.net.UnknownHostException e
|
||||||
|
"UnknownHost")))))
|
||||||
|
|
||||||
(defn- wrap-appender-juxt
|
(defn- wrap-appender-juxt
|
||||||
"Wraps compile-time appender juxt with additional runtime capabilities
|
"Wraps compile-time appender juxt with additional runtime capabilities
|
||||||
|
|
Loading…
Reference in New Issue