From f19eb013da71af8e60018406a5fca16b87c8a0fe Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Tue, 31 May 2011 12:27:58 +0000 Subject: [PATCH] Reduces log level for errors that often occur with SIP keep alives in an effort to preserve readability in log files. Reported by Andreas Kuckartz. --- .../impl/protocol/sip/SipApplicationData.java | 2 +- .../impl/protocol/sip/SipStackSharing.java | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java b/src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java index f7a466b80..57271b9a1 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java @@ -93,7 +93,7 @@ public static Object getApplicationData(Object container, String key) { if (container == null) { - logger.warn("container is null"); + logger.debug("container is null"); return null; } if (key == null) diff --git a/src/net/java/sip/communicator/impl/protocol/sip/SipStackSharing.java b/src/net/java/sip/communicator/impl/protocol/sip/SipStackSharing.java index 0a2e22114..f331064a0 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/SipStackSharing.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/SipStackSharing.java @@ -923,7 +923,7 @@ private ProtocolProviderServiceSipImpl findTargetFor(Request request) // fallback on the first candidate ProtocolProviderServiceSipImpl target = candidates.iterator().next(); - logger.warn("Will randomly dispatch to \"" + logger.info("Will randomly dispatch to \"" + target.getAccountID() + "\" because there is ambiguity on the username from" + " the Request-URI"); @@ -935,8 +935,9 @@ private ProtocolProviderServiceSipImpl findTargetFor(Request request) // fallback on any account ProtocolProviderServiceSipImpl target = currentListenersCopy.iterator().next(); - if (logger.isInfoEnabled()) - logger.info("Will randomly dispatch to \"" + target.getAccountID() + if (logger.isDebugEnabled()) + logger.debug("Will randomly dispatch to \"" + target + .getAccountID() + "\" because the username in the Request-URI " + "is unknown or empty"); if (logger.isTraceEnabled()) @@ -1072,7 +1073,8 @@ public static ServerTransaction getOrCreateServerTransaction( /** * Returns a local address to use with the specified TCP destination. - * The method forces the JAIN-SIP stack to creates and binds (if necessary) + * The method forces the JAIN-SIP stack to create + * s and binds (if necessary) * and return a socket connected to the specified destination address and * port and then return its local address. *