better logging (port number) when failing to bind

This commit is contained in:
Shay Banon 2012-01-24 13:08:16 +02:00
parent b2aae7f3a0
commit e0f9f292ec
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ public class MulticastZenPing extends AbstractLifecycleComponent<ZenPing> implem
multicastSocket.close(); multicastSocket.close();
multicastSocket = null; multicastSocket = null;
} }
logger.warn("disabled, failed to setup multicast discovery on {}: {}", multicastInterface, e.getMessage()); logger.warn("disabled, failed to setup multicast discovery on port [{}], [{}]: {}", port, multicastInterface, e.getMessage());
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
logger.debug("disabled, failed to setup multicast discovery on {}", e, multicastInterface); logger.debug("disabled, failed to setup multicast discovery on {}", e, multicastInterface);
} }