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.
This commit is contained in:
Justin Bertram 2021-04-12 13:36:44 -05:00
parent 07221abe21
commit 79c9364e65
1 changed files with 1 additions and 1 deletions

View File

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