mirror of https://github.com/apache/activemq.git
Merge pull request #500 from jbonofre/AMQ-7303
[AMQ-7303] Improve logging in case of security exception on transport connection
This commit is contained in:
commit
c0e7949468
|
@ -847,7 +847,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
||||||
brokerConnectionStates.remove(info.getConnectionId());
|
brokerConnectionStates.remove(info.getConnectionId());
|
||||||
}
|
}
|
||||||
unregisterConnectionState(info.getConnectionId());
|
unregisterConnectionState(info.getConnectionId());
|
||||||
LOG.warn("Failed to add Connection id={}, clientId={} due to {}", info.getConnectionId(), clientId, e.getLocalizedMessage(), e);
|
LOG.warn("Failed to add Connection id={}, clientId={}, clientIP={} due to {}", info.getConnectionId(), clientId, info.getClientIp(), e.getLocalizedMessage());
|
||||||
//AMQ-6561 - stop for all exceptions on addConnection
|
//AMQ-6561 - stop for all exceptions on addConnection
|
||||||
// close this down - in case the peer of this transport doesn't play nice
|
// close this down - in case the peer of this transport doesn't play nice
|
||||||
delayedStop(2000, "Failed with SecurityException: " + e.getLocalizedMessage(), e);
|
delayedStop(2000, "Failed with SecurityException: " + e.getLocalizedMessage(), e);
|
||||||
|
|
Loading…
Reference in New Issue