From: Olivier Lamy Date: Fri, 22 Feb 2013 16:05:54 +0000 (+0000) Subject: add user manager id in warning log X-Git-Tag: archiva-1.4-M4~131 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7c6999162c994b6440ea85a6428b48122da08423;p=archiva.git add user manager id in warning log git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1449094 13f79535-47bb-0310-9956-ffa450edef68 --- 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()