improve logging

This commit is contained in:
Sebastian Sdorra
2012-05-24 22:30:00 +02:00
parent f3412f5aee
commit 564b603d9a
2 changed files with 6 additions and 6 deletions

View File

@@ -265,7 +265,7 @@ public class BasicSecurityContext implements WebSecurityContext
{
if (logger.isWarnEnabled())
{
logger.warn("user '{}' is deactivated", user.getName());
logger.warn("user {} is deactivated", user.getName());
}
user = null;
@@ -300,7 +300,7 @@ public class BasicSecurityContext implements WebSecurityContext
{
if (logger.isDebugEnabled())
{
logger.debug("user '{}' is marked as deactivated by local database");
logger.debug("user {} is marked as deactivated by local database");
}
user.setActive(false);
@@ -327,7 +327,7 @@ public class BasicSecurityContext implements WebSecurityContext
if (logger.isDebugEnabled())
{
logger.debug(
"user '{}' of type '{}' is marked as admin by local database",
"user {} of type {} is marked as admin by local database",
user.getName(), user.getType());
}
@@ -356,13 +356,13 @@ public class BasicSecurityContext implements WebSecurityContext
if (logger.isDebugEnabled() && user.isAdmin())
{
logger.debug("user '{}' is marked as admin by configuration",
logger.debug("user {} is marked as admin by configuration",
user.getName());
}
}
else if (logger.isDebugEnabled())
{
logger.debug("authenticator {} marked user '{}' as admin",
logger.debug("authenticator {} marked user {} as admin",
user.getType(), user.getName());
}
}

View File

@@ -208,7 +208,7 @@ public class DefaultAuthenticationHandler implements AuthenticationHandler
{
if (logger.isDebugEnabled())
{
logger.debug("user {} logged in successfully", username);
logger.debug("user {} successfully prepared for login", username);
}
user.setPassword(null);