Include AuthenticationException in logs

Fixes gh-3705
This commit is contained in:
Li Weinan 2016-02-18 12:05:09 +08:00 committed by Joe Grandja
parent 4004ce2808
commit 70bd7d1bbc
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ public abstract class AbstractAuthenticationProcessingFilter extends GenericFilt
SecurityContextHolder.clearContext();
if (logger.isDebugEnabled()) {
logger.debug("Authentication request failed: " + failed.toString());
logger.debug("Authentication request failed: " + failed.toString(), failed);
logger.debug("Updated SecurityContextHolder to contain null Authentication");
logger.debug("Delegating to authentication failure handler " + failureHandler);
}