You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cs...@apache.org on 2022/04/06 14:11:36 UTC

[activemq] branch activemq-5.16.x updated: AMQ-8548 - Don't log full stack trace on Async error at WARN level

This is an automated email from the ASF dual-hosted git repository.

cshannon pushed a commit to branch activemq-5.16.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-5.16.x by this push:
     new f759fb0bd AMQ-8548 - Don't log full stack trace on Async error at WARN level
f759fb0bd is described below

commit f759fb0bd1191de46cf8bbc9e85ddb46cf613584
Author: Christopher L. Shannon <ch...@gmail.com>
AuthorDate: Wed Apr 6 10:11:12 2022 -0400

    AMQ-8548 - Don't log full stack trace on Async error at WARN level
---
 .../src/main/java/org/apache/activemq/broker/TransportConnection.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java b/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
index f239df1db..7533a714e 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
@@ -309,7 +309,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
                 if (SERVICELOG.isDebugEnabled()) {
                     SERVICELOG.debug("Async error occurred: {}", e.getMessage(), e);
                 } else {
-                    SERVICELOG.warn("Async error occurred", e);
+                    SERVICELOG.warn("Async error occurred", e.getMessage());
                 }
                 ConnectionError ce = new ConnectionError();
                 ce.setException(e);