From 3099953b726b9b6722fbf4ac6958e8a859ac6571 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Thu, 13 Dec 2007 10:56:07 +0000 Subject: [PATCH] If can't recover message id from the store - change error message to debug. The problem occurs because the message has already been dispatched git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@603881 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/store/amq/RecoveryListenerAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/store/amq/RecoveryListenerAdapter.java b/activemq-core/src/main/java/org/apache/activemq/store/amq/RecoveryListenerAdapter.java index bb7af38c36..b8895c026d 100644 --- a/activemq-core/src/main/java/org/apache/activemq/store/amq/RecoveryListenerAdapter.java +++ b/activemq-core/src/main/java/org/apache/activemq/store/amq/RecoveryListenerAdapter.java @@ -55,7 +55,9 @@ final class RecoveryListenerAdapter implements MessageRecoveryListener { if (message != null) { return recoverMessage(message); } else { - LOG.error("Message id " + ref + " could not be recovered from the data store!"); + if (LOG.isDebugEnabled()) { + LOG.debug("Message id " + ref + " could not be recovered from the data store - already dispatched"); + } } return false; }