activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r965517 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/LoggingBrokerPlugin.java
Date Mon, 19 Jul 2010 14:59:28 GMT
Author: gtully
Date: Mon Jul 19 14:59:27 2010
New Revision: 965517

URL: http://svn.apache.org/viewvc?rev=965517&view=rev
Log:
resolve: https://issues.apache.org/activemq/browse/AMQ-2836 - copy message before logging

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/LoggingBrokerPlugin.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/LoggingBrokerPlugin.java?rev=965517&r1=965516&r2=965517&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/LoggingBrokerPlugin.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/util/LoggingBrokerPlugin.java
Mon Jul 19 14:59:27 2010
@@ -271,7 +271,7 @@ public class LoggingBrokerPlugin extends
     @Override
     public void send(ProducerBrokerExchange producerExchange, Message messageSend) throws
Exception {
         if (isLogAll() || isLogProducerEvents()) {
-            LOG.info("Sending message : " + messageSend);
+            LOG.info("Sending message : " + messageSend.copy());
         }
         super.send(producerExchange, messageSend);
     }



Mime
View raw message