shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lhazlew...@apache.org
Subject svn commit: r906499 - /incubator/shiro/trunk/core/src/main/java/org/apache/shiro/mgt/DefaultSecurityManager.java
Date Thu, 04 Feb 2010 14:36:41 GMT
Author: lhazlewood
Date: Thu Feb  4 14:36:41 2010
New Revision: 906499

URL: http://svn.apache.org/viewvc?rev=906499&view=rev
Log:
Changed invalid sesion id exception log to be trace rather than debug

Modified:
    incubator/shiro/trunk/core/src/main/java/org/apache/shiro/mgt/DefaultSecurityManager.java

Modified: incubator/shiro/trunk/core/src/main/java/org/apache/shiro/mgt/DefaultSecurityManager.java
URL: http://svn.apache.org/viewvc/incubator/shiro/trunk/core/src/main/java/org/apache/shiro/mgt/DefaultSecurityManager.java?rev=906499&r1=906498&r2=906499&view=diff
==============================================================================
--- incubator/shiro/trunk/core/src/main/java/org/apache/shiro/mgt/DefaultSecurityManager.java
(original)
+++ incubator/shiro/trunk/core/src/main/java/org/apache/shiro/mgt/DefaultSecurityManager.java
Thu Feb  4 14:36:41 2010
@@ -405,8 +405,11 @@
                 context.put(SubjectFactory.SESSION, session);
             } catch (InvalidSessionException e) {
                 onInvalidSessionId(sessionId, e);
-                log.debug("Context referenced sessionId is invalid.  Ignoring and creating
an anonymous " +
-                        "(session-less) Subject instance.", e);
+                log.debug("Context referenced sessionId {} is invalid.  Ignoring and creating
an anonymous " +
+                        "(session-less) Subject instance.", sessionId);
+                if (log.isTraceEnabled()) {
+                    log.trace("Exception resulting from referenced invalid sessionId " +
sessionId, e);
+                }
             }
         }
         return context;



Mime
View raw message