Browse Source

Log stack trace to assist debugging.

Ben Alex 21 years ago
parent
commit
957e28252e

+ 1 - 1
core/src/main/java/org/acegisecurity/intercept/web/SecurityEnforcementFilter.java

@@ -190,7 +190,7 @@ public class SecurityEnforcementFilter implements Filter, InitializingBean {
             if (logger.isDebugEnabled()) {
             if (logger.isDebugEnabled()) {
                 logger.debug(
                 logger.debug(
                     "Authentication failed - adding target URL to Session: "
                     "Authentication failed - adding target URL to Session: "
-                    + targetUrl);
+                    + targetUrl, authentication);
             }
             }
 
 
             ((HttpServletRequest) request).getSession().setAttribute(AbstractProcessingFilter.ACEGI_SECURITY_TARGET_URL_KEY,
             ((HttpServletRequest) request).getSession().setAttribute(AbstractProcessingFilter.ACEGI_SECURITY_TARGET_URL_KEY,