diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java index 55e270023f..8fa7481c33 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java @@ -661,8 +661,8 @@ public abstract class PrefetchSubscription extends AbstractSubscription { 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()); } } } diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java index f8f387e96b..fb1214b4b6 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java @@ -1619,6 +1619,9 @@ public class Queue extends BaseDestination implements Task, UsageListener { }finally { consumersLock.readLock().unlock(); } + if (LOG.isTraceEnabled()) { + LOG.trace("Message " + msg.getMessageId() + " sent to " + this.destination); + } wakeup(); }