summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-web-common
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-02-22 16:05:54 +0000
committerOlivier Lamy <olamy@apache.org>2013-02-22 16:05:54 +0000
commit7c6999162c994b6440ea85a6428b48122da08423 (patch)
treef7dd0ce89f0b987176cb4bfb59a9fef010f4ae3a /archiva-modules/archiva-web/archiva-web-common
parentbffd5ae70e9f70d0633f89243216709c113eebcb (diff)
downloadarchiva-7c6999162c994b6440ea85a6428b48122da08423.tar.gz
archiva-7c6999162c994b6440ea85a6428b48122da08423.zip
add user manager id in warning log
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1449094 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common')
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java
index 0d04fa365..3badea64a 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java
@@ -194,7 +194,8 @@ public class ArchivaUserManagerAuthenticator
}
catch ( UserNotFoundException e )
{
- log.warn( "Login for user {} failed. user not found.", source.getUsername() );
+ log.warn( "Login for user {} and userManager {} failed. user not found.", source.getUsername(),
+ userManager.getId() );
resultException = e;
authnResultErrors.add( new AuthenticationFailureCause( AuthenticationConstants.AUTHN_NO_SUCH_USER,
"Login for user " + source.getUsername()
@@ -202,7 +203,8 @@ public class ArchivaUserManagerAuthenticator
}
catch ( Exception e )
{
- log.warn( "Login for user {} failed, message: {}", source.getUsername(), e.getMessage() );
+ log.warn( "Login for user {} and userManager {} failed, message: {}", source.getUsername(),
+ userManager.getId(), e.getMessage() );
resultException = e;
authnResultErrors.add( new AuthenticationFailureCause( AuthenticationConstants.AUTHN_RUNTIME_EXCEPTION,
"Login for user " + source.getUsername()