record the destination of a dup in the warn message, helps diagnose

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@990158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-08-27 14:08:40 +00:00
parent ee4c8eeaba
commit c458bd1a1f
1 changed files with 1 additions and 1 deletions

View File

@ -995,7 +995,7 @@ public class MessageDatabase extends ServiceSupport implements BrokerServiceAwar
// If the message ID as indexed, then the broker asked us to
// store a DUP
// message. Bad BOY! Don't do it, and log a warning.
LOG.warn("Duplicate message add attempt rejected. Message id: " + command.getMessageId());
LOG.warn("Duplicate message add attempt rejected. Destination: " + command.getDestination().getName() + ", Message id: " + command.getMessageId());
// TODO: consider just rolling back the tx.
sd.messageIdIndex.put(tx, command.getMessageId(), previous);
sd.locationIndex.remove(tx, location);