Down level filter logging messages
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 10 Jan 2008 13:17:25 +0000 (13:17 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 10 Jan 2008 13:17:25 +0000 (13:17 +0000)
Add some logging in AuthN engine

git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2552 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/authn/AuthenticationEngine.java
src/edu/internet2/middleware/shibboleth/idp/session/IdPSessionFilter.java

index 24fc8c0..098a887 100644 (file)
@@ -298,6 +298,7 @@ public class AuthenticationEngine extends HttpServlet {
             Session shibSession) {
 
         if (shibSession == null) {
+            LOG.debug("No existing authentication methods due to the lack of existing IdP sessions");
             return null;
         }
 
index e6ed7e5..b21b940 100644 (file)
@@ -63,6 +63,7 @@ public class IdPSessionFilter implements Filter {
         if (idpSessionCookie != null) {
             idpSession = sessionManager.getSession(idpSessionCookie.getValue());
             if (idpSession != null) {
+                log.trace("Updating IdP session activity time and adding session object to the request");
                 idpSession.setLastActivityInstant(new DateTime());
                 httpRequest.setAttribute(Session.HTTP_SESSION_BINDING_ATTRIBUTE, idpSession);
             }
@@ -84,19 +85,19 @@ public class IdPSessionFilter implements Filter {
      * @return the user's current IdP session cookie, if they have a current session, otherwise null
      */
     protected Cookie getIdPSessionCookie(HttpServletRequest request) {
-        log.debug("Attempting to retrieve IdP session cookie.");
+        log.trace("Attempting to retrieve IdP session cookie.");
         Cookie[] requestCookies = request.getCookies();
 
         if (requestCookies != null) {
             for (Cookie requestCookie : requestCookies) {
                 if (DatatypeHelper.safeEquals(requestCookie.getName(), AuthenticationEngine.IDP_SESSION_COOKIE_NAME)) {
-                    log.debug("Found IdP session cookie.");
+                    log.trace("Found IdP session cookie.");
                     return requestCookie;
                 }
             }
         }
 
-        log.debug("No IdP session cookie sent by the client.");
+        log.trace("No IdP session cookie sent by the client.");
         return null;
     }
 }
\ No newline at end of file