Merge pull request #283 from SaivR1t/master

AMQ-6963 Fix calling the toString() method in case of different log level.
This commit is contained in:
Jean-Baptiste Onofré 2019-11-18 05:50:37 +01:00 committed by GitHub
commit a59ebe7d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1377,7 +1377,7 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
}
private void forceCloseOnSecurityException(Throwable exception) {
LOG.trace("force close on security exception:" + this + ", transport=" + transport, exception);
LOG.trace("force close on security exception:{}, transport={}", this, transport, exception);
onException(new IOException("Force close due to SecurityException on connect", exception));
}
@ -1941,8 +1941,8 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
}
});
} else {
LOG.debug("Async client internal exception occurred with no exception listener registered: "
+ error, error);
LOG.debug("Async client internal exception occurred with no exception listener registered: {}",
error, error);
}
}
}
@ -1969,7 +1969,7 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
});
} else {
LOG.debug("Async exception with no exception listener: " + error, error);
LOG.debug("Async exception with no exception listener: {}", error, error);
}
}
}