mirror of https://github.com/apache/activemq.git
add some traces to enable easier monitor of message flow
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1026008 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3432a75110
commit
57737968fb
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue