mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
improve logging
This commit is contained in:
@@ -265,7 +265,7 @@ public class BasicSecurityContext implements WebSecurityContext
|
|||||||
{
|
{
|
||||||
if (logger.isWarnEnabled())
|
if (logger.isWarnEnabled())
|
||||||
{
|
{
|
||||||
logger.warn("user '{}' is deactivated", user.getName());
|
logger.warn("user {} is deactivated", user.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
user = null;
|
user = null;
|
||||||
@@ -300,7 +300,7 @@ public class BasicSecurityContext implements WebSecurityContext
|
|||||||
{
|
{
|
||||||
if (logger.isDebugEnabled())
|
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);
|
user.setActive(false);
|
||||||
@@ -327,7 +327,7 @@ public class BasicSecurityContext implements WebSecurityContext
|
|||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.debug(
|
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());
|
user.getName(), user.getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,13 +356,13 @@ public class BasicSecurityContext implements WebSecurityContext
|
|||||||
|
|
||||||
if (logger.isDebugEnabled() && user.isAdmin())
|
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());
|
user.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (logger.isDebugEnabled())
|
else if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.debug("authenticator {} marked user '{}' as admin",
|
logger.debug("authenticator {} marked user {} as admin",
|
||||||
user.getType(), user.getName());
|
user.getType(), user.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ public class DefaultAuthenticationHandler implements AuthenticationHandler
|
|||||||
{
|
{
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.debug("user {} logged in successfully", username);
|
logger.debug("user {} successfully prepared for login", username);
|
||||||
}
|
}
|
||||||
|
|
||||||
user.setPassword(null);
|
user.setPassword(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user