mirror of
https://github.com/apache/activemq.git
synced 2025-02-27 20:59:06 +00:00
Including remote ip address when logging authentication failures
This commit is contained in:
parent
9bc602be43
commit
84737f7749
@ -348,7 +348,8 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
||||
|
||||
if (responseRequired) {
|
||||
if (e instanceof SecurityException || e.getCause() instanceof SecurityException) {
|
||||
SERVICELOG.warn("Security Error occurred: {}", e.getMessage());
|
||||
SERVICELOG.warn("Security Error occurred on connection to: {}, {}",
|
||||
transport.getRemoteAddress(), e.getMessage());
|
||||
}
|
||||
response = new ExceptionResponse(e);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user