activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1077889 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq: broker/TransportConnection.java transport/stomp/ProtocolConverter.java
Date Fri, 04 Mar 2011 11:46:40 GMT
Author: gtully
Date: Fri Mar  4 11:46:39 2011
New Revision: 1077889

URL: http://svn.apache.org/viewvc?rev=1077889&view=rev
Log:
further reduction in stack traces at warn level in log for STOMP, suppress to stack trace
to debug level, better for authorized broker

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/ProtocolConverter.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=1077889&r1=1077888&r2=1077889&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 Mar  4 11:46:39 2011
@@ -697,7 +697,7 @@ public class TransportConnection impleme
             brokerConnectionStates.remove(info);
             LOG.warn("Failed to add Connection, reason: " +  e.toString());
             if (LOG.isDebugEnabled()) {
-                LOG.debug("Failure detail", e);
+                LOG.debug("Exception detail:", e);
             }
             throw e;
         }

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/ProtocolConverter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/ProtocolConverter.java?rev=1077889&r1=1077888&r2=1077889&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/ProtocolConverter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/ProtocolConverter.java
Fri Mar  4 11:46:39 2011
@@ -206,7 +206,11 @@ public class ProtocolConverter {
     }
 
     protected void handleException(Throwable exception, StompFrame command) throws IOException
{
-        LOG.warn("Exception occured processing: \n" + command, exception);
+        LOG.warn("Exception occurred processing: \n" + command + ": " + exception.toString());
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("Exception detail", exception);
+        }
+
         // Let the stomp client know about any protocol errors.
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         PrintWriter stream = new PrintWriter(new OutputStreamWriter(baos, "UTF-8"));



Mime
View raw message