mirror of
https://github.com/apache/activemq.git
synced 2025-02-24 02:54:48 +00:00
[AMQ-7301] Don't display stack trace on connection error, just the cause
This commit is contained in:
parent
6675ddfe28
commit
8212b69fa9
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user