activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1080560 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
Date Fri, 11 Mar 2011 12:58:20 GMT
Author: gtully
Date: Fri Mar 11 12:58:19 2011
New Revision: 1080560

URL: http://svn.apache.org/viewvc?rev=1080560&view=rev
Log:
give debug logging insight to the inactivity monitor negotiation, output local and remote
infos

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java?rev=1080560&r1=1080559&r2=1080560&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
Fri Mar 11 12:58:19 2011
@@ -327,9 +327,15 @@ public class InactivityMonitor extends T
             configured = true;
         } else if (localWireFormatInfo != null && remoteWireFormatInfo != null) {
             if (!ignoreRemoteWireFormat) {
+                if (LOG.isDebugEnabled()) {
+                    LOG.debug("Using min of local: " + localWireFormatInfo + " and remote:
" + remoteWireFormatInfo);
+                }
                 readCheckTime = Math.min(localWireFormatInfo.getMaxInactivityDuration(),
remoteWireFormatInfo.getMaxInactivityDuration());
                 initialDelayTime = Math.min(localWireFormatInfo.getMaxInactivityDurationInitalDelay(),
remoteWireFormatInfo.getMaxInactivityDurationInitalDelay());
             } else {
+                if (LOG.isDebugEnabled()) {
+                    LOG.debug("Using local: " + localWireFormatInfo);
+                }
                 readCheckTime = localWireFormatInfo.getMaxInactivityDuration();
                 initialDelayTime = localWireFormatInfo.getMaxInactivityDurationInitalDelay();
             }



Mime
View raw message