activemq-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=631866&view=rev
Log:
Tweak the logging a bit. Didn't like the idea of different log messages depending on log level.

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=631866&r1=631865&r2=631866&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:24:17 2008
@@ -199,11 +199,8 @@
         synchronized (reconnectMutex) {
             boolean reconnectOk = false;
             if(started) {
-                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);
-                }
+                LOG.warn("Transport failed, attempting to automatically reconnect due to:
" + e);
+                LOG.debug("Transport failed with the following exception:", e);
                 reconnectOk = true;
             }
             



Mime
View raw message