activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1026008 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region: PrefetchSubscription.java Queue.java
Date Thu, 21 Oct 2010 14:14:38 GMT
Author: dejanb
Date: Thu Oct 21 14:14:38 2010
New Revision: 1026008

URL: http://svn.apache.org/viewvc?rev=1026008&view=rev
Log:
add some traces to enable easier monitor of message flow

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java?rev=1026008&r1=1026007&r2=1026008&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
Thu Oct 21 14:14:38 2010
@@ -661,8 +661,8 @@ public abstract class PrefetchSubscripti
                 node.getRegionDestination().getDestinationStatistics().getDispatched().increment();
                 node.getRegionDestination().getDestinationStatistics().getInflight().increment();
  
                 if (LOG.isTraceEnabled()) {
-                    LOG.trace(info.getConsumerId() + " dispatched: " + message.getMessageId()

-                            + ", dispatched: " + dispatchCounter + ", inflight: " + dispatched.size());
+                    LOG.trace(info.getConsumerId() + " dispatched: " + message.getMessageId()
+ " - "
+                            + message.getDestination()  + ", dispatched: " + dispatchCounter
+ ", inflight: " + dispatched.size());
                 }
             }
         }

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java?rev=1026008&r1=1026007&r2=1026008&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java
Thu Oct 21 14:14:38 2010
@@ -1619,6 +1619,9 @@ public class Queue extends BaseDestinati
         }finally {
             consumersLock.readLock().unlock();
         }
+        if (LOG.isTraceEnabled()) {
+            LOG.trace("Message " + msg.getMessageId() + " sent to " + this.destination);
+        }
         wakeup();
     }
 



Mime
View raw message