AMQ-8548 - Don't log full stack trace on Async error at WARN level

This commit is contained in:
Christopher L. Shannon 2022-04-06 10:11:12 -04:00
parent 04e5114e21
commit f759fb0bd1

View File

@ -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);