mirror of
https://github.com/apache/activemq.git
synced 2025-02-24 11:05:00 +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) {
|
private void onAcceptError(Exception error, String remoteHost) {
|
||||||
if (brokerService != null && brokerService.isStopping()) {
|
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 {
|
} else {
|
||||||
LOG.error("Could not accept connection {} : {}", (remoteHost == null ? "" : "from " + remoteHost), error);
|
LOG.warn("Could not accept connection {} : {}", (remoteHost == null ? "" : "from " + remoteHost), error.getLocalizedMessage());
|
||||||
LOG.debug("Reason: " + error, error);
|
LOG.debug("Reason: " + error.getMessage(), error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user