[AMQ-9288] Fix TransportConnection logger to include exception message on Async Error (#1038)

This commit is contained in:
Matt Pavlovich 2023-08-01 08:29:10 -05:00 committed by GitHub
parent 673f4b33e8
commit b751428ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,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.getMessage());
SERVICELOG.warn("Async error occurred: {}", e.getMessage());
}
ConnectionError ce = new ConnectionError();
ce.setException(e);