Improve logging
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.core / src / main / java / org / argeo / security / core / AuthenticatedApplicationContextInitialization.java
index 51d4b192966dccb77d6ba214f202fc1b95dc2397..59f6a517921e79c448e08ad342889e6c2fb5497e 100644 (file)
@@ -29,8 +29,8 @@ public class AuthenticatedApplicationContextInitialization extends
                // refreshed in order to be able to deal with factory beans has well
                if (!isAuthenticatedBySelf()) {
                        authenticateAsSystem();
-                       if (log.isDebugEnabled())
-                               log.debug("Application context initialization authenticated for thread "
+                       if (log.isTraceEnabled())
+                               log.trace("Application context initialization authenticated for thread "
                                                + Thread.currentThread().getName());
                }
                return null;
@@ -68,8 +68,8 @@ public class AuthenticatedApplicationContextInitialization extends
                        // make sure that we have deauthenticated after the application
                        // context was initialized/refreshed
                        deauthenticateAsSystem();
-                       if (log.isDebugEnabled())
-                               log.debug("Application context initialization deauthenticated for thread "
+                       if (log.isTraceEnabled())
+                               log.trace("Application context initialization deauthenticated for thread "
                                                + Thread.currentThread().getName());
                }
        }