Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
macOS 10.12
Description
Logging initializer calls ch.qos.logback.core.util.ContextUtil#addHostNameAsProperty which attempts to resolve hostname. It is not possible to avoid this method from being called from one hand. From the other it may stuck for seconds in InetAddress.getLocalHost().
Let's make hostname property lazy evaluating, or being evaluated off the calling thread to avoid slowing down application start