LOG at info level for when broker is being stopped and a new connection
is not being accepted.
This commit is contained in:
Timothy Bish 2016-04-12 16:28:23 -04:00
parent 332a8225fa
commit f9682b802f
1 changed files with 7 additions and 3 deletions

View File

@ -239,9 +239,12 @@ public class TransportConnector implements Connector, BrokerServiceAware {
}
private void onAcceptError(Exception error, String remoteHost) {
LOG.error("Could not accept connection " + (remoteHost == null ? "" : "from " + remoteHost) + ": "
+ error);
LOG.debug("Reason: " + error, error);
if (brokerService != null && brokerService.isStopping()) {
LOG.info("Could not accept connection during shutdown {} : {}", (remoteHost == null ? "" : "from " + remoteHost), error);
} else {
LOG.error("Could not accept connection {} : {}", (remoteHost == null ? "" : "from " + remoteHost), error);
LOG.debug("Reason: " + error, error);
}
}
});
getServer().setBrokerInfo(brokerInfo);
@ -560,6 +563,7 @@ public class TransportConnector implements Connector, BrokerServiceAware {
/**
* @return the updateClusterFilter
*/
@Override
public String getUpdateClusterFilter() {
return this.updateClusterFilter;
}