From 55b9954873ba789444f6025615cf4ce51a1b8109 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Fri, 11 Mar 2011 12:58:19 +0000 Subject: [PATCH] give debug logging insight to the inactivity monitor negotiation, output local and remote infos git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1080560 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/transport/InactivityMonitor.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java b/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java index 1becea8bac..1b00def6fa 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java @@ -327,9 +327,15 @@ public class InactivityMonitor extends TransportFilter { 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(); }