improve error message reporting

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@782030 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-06-05 14:25:35 +00:00
parent 32ff105a20
commit 7b78c36485
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ public class TransportConnector implements Connector, BrokerServiceAware {
}
private void onAcceptError(Exception error, String remoteHost) {
LOG.error("Could not accept connection " + (remoteHost == null ? "" : "from " + remoteHost) + ": " + error.getMessage());
LOG.debug("Reason: " + error.getMessage(), error);
LOG.error("Could not accept connection " + (remoteHost == null ? "" : "from " + remoteHost) + ": " + error);
LOG.debug("Reason: " + error, error);
}
});