From 79c9364e65208745d4d19a7326608304ddaaf15f Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Mon, 12 Apr 2021 13:36:44 -0500 Subject: [PATCH] ARTEMIS-3237 logging OpenWire producer exception is confusing Logging the exception here is potentially confusing for two main reasons: 1. It's not clear the exception is specifically for the client. 2. There is likely other logging that identifies the problem. --- .../activemq/artemis/core/protocol/openwire/amq/AMQSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java index e963990ce5..d4de2ee4f2 100644 --- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java +++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java @@ -454,7 +454,7 @@ public class AMQSession implements SessionCallback { try { getCoreSession().send(coreMsg, false, dest.isTemporary()); } catch (Exception e) { - logger.warn(e.getMessage(), e); + logger.debug("Sending exception to the client", e); exceptionToSend = e; } connection.enableTtl();