]> source.dussan.org Git - archiva.git/commitdiff
add user manager id in warning log
authorOlivier Lamy <olamy@apache.org>
Fri, 22 Feb 2013 16:05:54 +0000 (16:05 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 22 Feb 2013 16:05:54 +0000 (16:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1449094 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java

index 0d04fa3658adff04a4cacdc79e79558b884d08fd..3badea64ab3833cdc16142bc800e3a0544fc7f92 100644 (file)
@@ -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()