From 558737363fc6bcd24a89660578682d62ecbd4d6b Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 8 Dec 2009 01:28:47 +0000 Subject: [PATCH] Added some extra tracing to SessionRegistryImpl. --- .../security/core/session/SessionRegistryImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/springframework/security/core/session/SessionRegistryImpl.java b/core/src/main/java/org/springframework/security/core/session/SessionRegistryImpl.java index c044ee52f9..c26f80edc4 100644 --- a/core/src/main/java/org/springframework/security/core/session/SessionRegistryImpl.java +++ b/core/src/main/java/org/springframework/security/core/session/SessionRegistryImpl.java @@ -129,6 +129,10 @@ public class SessionRegistryImpl implements SessionRegistry, ApplicationListener } sessionsUsedByPrincipal.add(sessionId); + + if (logger.isTraceEnabled()) { + logger.trace("Sessions used by '" + principal + "' : " + sessionsUsedByPrincipal); + } } public void removeSessionInformation(String sessionId) { @@ -140,7 +144,7 @@ public class SessionRegistryImpl implements SessionRegistry, ApplicationListener return; } - if (logger.isDebugEnabled()) { + if (logger.isTraceEnabled()) { logger.debug("Removing session " + sessionId + " from set of registered sessions"); } @@ -167,5 +171,9 @@ public class SessionRegistryImpl implements SessionRegistry, ApplicationListener principals.remove(info.getPrincipal()); } } + + if (logger.isTraceEnabled()) { + logger.trace("Sessions used by '" + info.getPrincipal() + "' : " + sessionsUsedByPrincipal); + } } }