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

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


The following commit(s) were added to refs/heads/activemq-5.15.x by this push:
     new fd61bb6  AMQ-6963 Fix calling the toString() method in case of 
different log level.
fd61bb6 is described below

commit fd61bb62bd8423b37938a8e70f4e46c332511f0d
Author: saivr1t <[email protected]>
AuthorDate: Tue May 15 18:46:36 2018 +0300

    AMQ-6963 Fix calling the toString() method in case of different log level.
    
    (cherry picked from commit 191e4ffbe6ce863980f6d239c49589055dd5535b)
---
 .../src/main/java/org/apache/activemq/ActiveMQConnection.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/activemq-client/src/main/java/org/apache/activemq/ActiveMQConnection.java 
b/activemq-client/src/main/java/org/apache/activemq/ActiveMQConnection.java
index 5a8596b..d95f871 100644
--- a/activemq-client/src/main/java/org/apache/activemq/ActiveMQConnection.java
+++ b/activemq-client/src/main/java/org/apache/activemq/ActiveMQConnection.java
@@ -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);
             }
         }
     }

Reply via email to