From 7c6999162c994b6440ea85a6428b48122da08423 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 22 Feb 2013 16:05:54 +0000 Subject: [PATCH] add user manager id in warning log git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1449094 13f79535-47bb-0310-9956-ffa450edef68 --- .../web/security/ArchivaUserManagerAuthenticator.java | 6 ++++-- 1 file 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() -- 2.39.5