suppress stack trace from failed add connecton to debug level trace, such that the warn just has the exception toString, with an authenticated broker, the stack trace is too much information and is the predominant reason for a failure to add

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1074550 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2011-02-25 14:54:48 +00:00
parent 2d121f4092
commit 7739a3cc4a
1 changed files with 4 additions and 1 deletions

View File

@ -695,7 +695,10 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
broker.addConnection(context, info);
} catch (Exception e) {
brokerConnectionStates.remove(info);
LOG.warn("Failed to add Connection", e);
LOG.warn("Failed to add Connection, reason: " + e.toString());
if (LOG.isDebugEnabled()) {
LOG.debug("Failure detail", e);
}
throw e;
}
if (info.isManageable()) {