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:
Jean-Baptiste Onofré 2020-03-04 21:44:37 +01:00 committed by GitHub
commit c0e7949468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);