activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1074550 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
Date Fri, 25 Feb 2011 14:54:48 GMT
Author: gtully
Date: Fri Feb 25 14:54:48 2011
New Revision: 1074550

URL: http://svn.apache.org/viewvc?rev=1074550&view=rev
Log:
suppress stack trace from failed add connecton to debug level trace, such that the warn just
has the exception toString, with an authenticated broker, the stack trace is too much information
and is the predominant reason for a failure to add

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java?rev=1074550&r1=1074549&r2=1074550&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
Fri Feb 25 14:54:48 2011
@@ -695,7 +695,10 @@ public class TransportConnection impleme
             broker.addConnection(context, info);
         } catch (Exception e) {
             brokerConnectionStates.remove(info);
-            LOG.warn("Failed to add Connection", e);
+            LOG.warn("Failed to add Connection, reason: " +  e.toString());
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("Failure detail", e);
+            }
             throw e;
         }
         if (info.isManageable()) {



Mime
View raw message