activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [activemq] branch activemq-5.15.x updated: [AMQ-7301] Don't display stack trace on connection error, just the cause
Date Tue, 12 Nov 2019 14:18:46 GMT
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 8212b69  [AMQ-7301] Don't display stack trace on connection error, just the cause
8212b69 is described below

commit 8212b69fa9e379393421eeb51f8d92a420ff5524
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
AuthorDate: Tue Nov 12 15:18:18 2019 +0100

    [AMQ-7301] Don't display stack trace on connection error, just the cause
---
 .../main/java/org/apache/activemq/broker/TransportConnector.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 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 ac96619..813be50 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
@@ -240,10 +240,10 @@ public class TransportConnector implements Connector, BrokerServiceAware
{
 
             private void onAcceptError(Exception error, String remoteHost) {
                 if (brokerService != null && brokerService.isStopping()) {
-                    LOG.info("Could not accept connection during shutdown {} : {}", (remoteHost
== null ? "" : "from " + remoteHost), error);
+                    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);
-                    LOG.debug("Reason: " + error, error);
+                    LOG.warn("Could not accept connection {} : {}", (remoteHost == null ?
"" : "from " + remoteHost), error.getLocalizedMessage());
+                    LOG.debug("Reason: " + error.getMessage(), error);
                 }
             }
         });


Mime
View raw message