diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2009-09-30 15:56:33 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2009-09-30 15:56:33 +0000 |
| commit | 15d379678e41401f91b514fd6aacd3c12ff7696e (patch) | |
| tree | 7926f46925d5ad0e32e050cb8f3f936c8b18d8bc /java | |
| parent | 16852bfd0edf9498ace4011076b15f10f3f3091d (diff) | |
| download | qpid-python-15d379678e41401f91b514fd6aacd3c12ff7696e.tar.gz | |
Add debug logging to see what the next message the Subscription is going to look at.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@820319 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
| -rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/subscription/SubscriptionImpl.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/subscription/SubscriptionImpl.java b/java/broker/src/main/java/org/apache/qpid/server/subscription/SubscriptionImpl.java index 72d6afc65c..2893e916cc 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/subscription/SubscriptionImpl.java +++ b/java/broker/src/main/java/org/apache/qpid/server/subscription/SubscriptionImpl.java @@ -630,11 +630,19 @@ public abstract class SubscriptionImpl implements Subscription, FlowCreditManage public QueueEntry getLastSeenEntry() { - return _queueContext.get(); + QueueEntry entry = _queueContext.get(); + + if(_logger.isDebugEnabled()) + { + _logger.debug(_logActor + ": lastSeenEntry: " + (entry == null ? "null" : entry.debugIdentity())); + } + + return entry; } public boolean setLastSeenEntry(QueueEntry expected, QueueEntry newvalue) { + _logger.debug(debugIdentity() + " Setting Last Seen To:" + (newvalue == null ? "nullNV" : newvalue.debugIdentity())); return _queueContext.compareAndSet(expected,newvalue); } |
