You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ac...@apache.org on 2008/02/28 07:24:18 UTC
svn commit: r631866 -
/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
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;
}