activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1175047 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompTransportFilter.java
Date Fri, 23 Sep 2011 22:04:20 GMT
Author: tabish
Date: Fri Sep 23 22:04:20 2011
New Revision: 1175047

URL: http://svn.apache.org/viewvc?rev=1175047&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQ-3511

Log Stomp frames sent and received by the StompTransport under
org.apache.activemq.transport.stomp.StompIO when the trace option
is enabled.

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompTransportFilter.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompTransportFilter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompTransportFilter.java?rev=1175047&r1=1175046&r2=1175047&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompTransportFilter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/StompTransportFilter.java
Fri Sep 23 22:04:20 2011
@@ -42,6 +42,7 @@ import org.slf4j.LoggerFactory;
  */
 public class StompTransportFilter extends TransportFilter implements StompTransport {
     private static final Logger LOG = LoggerFactory.getLogger(StompTransportFilter.class);
+    private static final Logger TRACE = LoggerFactory.getLogger(StompTransportFilter.class.getPackage().getName()
+ ".StompIO");
     private final ProtocolConverter protocolConverter;
     private StompInactivityMonitor monitor;
     private StompWireFormat wireFormat;
@@ -69,7 +70,7 @@ public class StompTransportFilter extend
     public void onCommand(Object command) {
         try {
             if (trace) {
-                LOG.trace("Received: \n" + command);
+                TRACE.trace("Received: \n" + command);
             }
 
             protocolConverter.onStompCommand((StompFrame)command);
@@ -89,7 +90,7 @@ public class StompTransportFilter extend
 
     public void sendToStomp(StompFrame command) throws IOException {
         if (trace) {
-            LOG.trace("Sending: \n" + command);
+            TRACE.trace("Sending: \n" + command);
         }
         Transport n = next;
         if (n!=null) {



Mime
View raw message