More debugs in the AddressResolver

cusax-fix
Emil Ivov 17 years ago
parent fea6fa92f1
commit 7ddf0c5ab2

@ -62,7 +62,7 @@ net.sf.cindy.impl.level = SEVERE
# But we want everything coming from the sip-comm
net.java.sip.communicator.level = WARNING
net.java.sip.communicator.impl.protocol.sip.level = FINEST
net.java.sip.communicator.impl.protocol.sip.level = WARNING
# For example, set the com.xyz.foo logger to only log SEVERE
# messages:

@ -63,18 +63,31 @@ public Hop resolveAddress(Hop inputAddress)
}
catch (Exception ex)
{
logger.error("Domain not resolved " + ex.getMessage());
//could mean there was no SRV record
if(logger.isDebugEnabled())
{
logger.debug("Domain "+ inputAddress
+" could not be resolved " + ex.getMessage());
//show who called us
logger.trace("Printing SRV resolution stack trace", ex);
}
}
Hop returnHop = null;
if (inputAddress.getPort() != -1)
{
return inputAddress;
returnHop = inputAddress;
}
else
{
return new HopImpl(inputAddress.getHost(),
returnHop = new HopImpl(inputAddress.getHost(),
MessageProcessor.getDefaultPort(
inputAddress.getTransport()),inputAddress.getTransport());
inputAddress.getTransport()),inputAddress.getTransport() );
}
if(logger.isDebugEnabled())
logger.debug("Returning hop: " + returnHop);
return returnHop;
}
}

@ -89,7 +89,7 @@ public class FirstWizardPage
= new JTextField(SIPAccountRegistration.DEFAULT_PORT);
private JComboBox transportCombo = new JComboBox(new Object[]
{ "UDP", "TLS", "TCP" });
{ "UDP", "TCP", "TLS" });
private JPanel presenceOpPanel = new JPanel(new BorderLayout(10, 10));

Loading…
Cancel
Save