mirror of https://github.com/apache/activemq.git
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…
Reference in New Issue