activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r631864 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
Date Thu, 28 Feb 2008 06:20:13 GMT
Author: aco
Date: Wed Feb 27 22:20:12 2008
New Revision: 631864

URL: http://svn.apache.org/viewvc?rev=631864&view=rev
Log:
Changing logging to log stacktraces to debug only

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java?rev=631864&r1=631863&r2=631864&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
Wed Feb 27 22:20:12 2008
@@ -127,8 +127,7 @@
             		try {
                         reconnectTask.wakeup();
                     } catch (InterruptedException e) {
-                        // TODO Auto-generated catch block
-                        e.printStackTrace();
+                        LOG.debug("Reconnect task has been interrupted.", e);
                     }
             	}
             	return result;
@@ -200,7 +199,11 @@
         synchronized (reconnectMutex) {
             boolean reconnectOk = false;
             if(started) {
-                LOG.warn("Transport failed, attempting to automatically reconnect due to:
" + e, e);
+                if (LOG.isDebugEnabled()) {
+                    LOG.debug("Transport failed, attempting to automatically reconnect due
to: " + e, e);
+                } else {
+                    LOG.warn("Transport failed, attempting to automatically reconnect due
to: " + e);
+                }
                 reconnectOk = true;
             }
             



Mime
View raw message