mirror of https://github.com/apache/activemq.git
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:
parent
2d121f4092
commit
7739a3cc4a
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue