Hi,

I just noticed some errors during testing:

21:49:31,936 |-ERROR in ch.qos.logback.core.util.ContextUtil@488f612f
- Failed to get local hostname java.net.UnknownHostException: mybox:
mybox: nodename nor servname provided, or not known
at java.net.UnknownHostException: mybox: mybox: nodename nor servname
provided, or not known
at at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
at at ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:33)
at at 
ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty(ContextUtil.java:42)
at at 
ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:57)
at at 
ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276)
...

(where 'mybox' is the hostname of my computer)

while of course the test still pass, I wonder why logback does a name
lookup. IMO, this can get a problem on systems, where DNS is not
properly configured or no DNS server is reachable and the name lookup
can take very long. if possible, the default configuration should
avoid this.

regards, toby

Reply via email to