You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2019/11/12 14:19:39 UTC
[activemq] branch master updated: [AMQ-7301] Use warn for
connection failure instead of error.
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 f3f8271 [AMQ-7301] Use warn for connection failure instead of error.
f3f8271 is described below
commit f3f827150368fa8c6d3a39a47f3602a80518630a
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Tue Nov 12 15:19:13 2019 +0100
[AMQ-7301] Use warn for connection failure instead of error.
---
.../src/main/java/org/apache/activemq/broker/TransportConnector.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnector.java b/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnector.java
index 42abf5c..20a2394 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnector.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnector.java
@@ -241,8 +241,8 @@ public class TransportConnector implements Connector, BrokerServiceAware {
if (brokerService != null && brokerService.isStopping()) {
LOG.info("Could not accept connection during shutdown {} : {}", (remoteHost == null ? "" : "from " + remoteHost), error.getLocalizedMessage());
} else {
- LOG.error("Could not accept connection {} : {}", (remoteHost == null ? "" : "from " + remoteHost), error.getLocalizedMessage());
- LOG.debug("Reason: " + error, error);
+ LOG.warn("Could not accept connection {} : {}", (remoteHost == null ? "" : "from " + remoteHost), error.getLocalizedMessage());
+ LOG.debug("Reason: " + error.getMessage(), error);
}
}
});