diff options
author | Olivier Lamy <olamy@apache.org> | 2013-02-22 16:05:54 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-02-22 16:05:54 +0000 |
commit | 7c6999162c994b6440ea85a6428b48122da08423 (patch) | |
tree | f7dd0ce89f0b987176cb4bfb59a9fef010f4ae3a /archiva-modules/archiva-web/archiva-web-common | |
parent | bffd5ae70e9f70d0633f89243216709c113eebcb (diff) | |
download | archiva-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.java | 6 |
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() |