[Minor] logging of authentication attempts
This commit is contained in:
parent
8b9c8ea1e5
commit
6191949c3e
|
@ -572,7 +572,12 @@ public class DefaultPrivilegeHandler implements PrivilegeHandler {
|
|||
CertificateSessionPair certificateSessionPair = this.sessionMap.remove(certificate.getSessionId());
|
||||
|
||||
// return true if object was really removed
|
||||
return certificateSessionPair != null;
|
||||
boolean loggedOut = certificateSessionPair != null;
|
||||
if (loggedOut)
|
||||
logger.info("User " + certificate.getUsername() + " logged out.");
|
||||
else
|
||||
logger.warn("User already logged out!");
|
||||
return loggedOut;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue