From 2d9125a7c61999ed2aaa7c14d0fd3fe2b9a5d19d Mon Sep 17 00:00:00 2001 From: jbertram Date: Mon, 17 Nov 2014 13:47:49 -0600 Subject: [PATCH] ACTIVEMQ6-38 Overzealous logging for missing queue --- .../core/protocol/core/ServerSessionPacketHandler.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/activemq-server/src/main/java/org/apache/activemq/core/protocol/core/ServerSessionPacketHandler.java b/activemq-server/src/main/java/org/apache/activemq/core/protocol/core/ServerSessionPacketHandler.java index 1b2382f3d6..57ac895f44 100644 --- a/activemq-server/src/main/java/org/apache/activemq/core/protocol/core/ServerSessionPacketHandler.java +++ b/activemq-server/src/main/java/org/apache/activemq/core/protocol/core/ServerSessionPacketHandler.java @@ -556,7 +556,14 @@ public class ServerSessionPacketHandler implements ChannelHandler } else { - HornetQServerLogger.LOGGER.caughtException(e); + if (e.getType() == HornetQExceptionType.QUEUE_EXISTS) + { + HornetQServerLogger.LOGGER.debug("Caught exception", e); + } + else + { + HornetQServerLogger.LOGGER.caughtException(e); + } } } catch (Throwable t)