This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/master by this push:
new 191e4ff AMQ-6963 Fix calling the toString() method in case of
different log level.
new a59ebe7 Merge pull request #283 from SaivR1t/master
191e4ff is described below
commit 191e4ffbe6ce863980f6d239c49589055dd5535b
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.
---
.../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 9f12344..3ac32d1 100644
--- a/activemq-client/src/main/java/org/apache/activemq/ActiveMQConnection.java
+++ b/activemq-client/src/main/java/org/apache/activemq/ActiveMQConnection.java
@@ -1373,7 +1373,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));
}
@@ -1933,8 +1933,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);
}
}
}
@@ -1961,7 +1961,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);
}
}
}