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:
Bosanac Dejan 2010-10-21 14:14:38 +00:00
parent 3432a75110
commit 57737968fb
2 changed files with 5 additions and 2 deletions

View File

@ -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());
}
}
}

View File

@ -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();
}