[Minor] logging of authentication attempts

This commit is contained in:
eitch 2011-07-30 14:10:47 +00:00
parent 8b9c8ea1e5
commit 6191949c3e
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}
/**