Including remote ip address when logging authentication failures
This commit is contained in:
Christopher L. Shannon 2015-05-21 20:36:41 -04:00 committed by Timothy Bish
parent 9bc602be43
commit 84737f7749
1 changed files with 2 additions and 1 deletions

View File

@ -348,7 +348,8 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
if (responseRequired) { if (responseRequired) {
if (e instanceof SecurityException || e.getCause() instanceof SecurityException) { 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); response = new ExceptionResponse(e);
} else { } else {