From 72aecaff05a88851a0a143da709c35c3b57ad4a1 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Sun, 7 Oct 2012 11:38:21 -0500 Subject: [PATCH] SEC-1939: Update SwitchUserFilter logger to use debug Previously the SwitchUserFilter was logging as an error and then throwing an Exception immediately after. This is not correct, since whomever is catching the Exception should choose to log an error or not. Now the log statement is at a debug level. --- .../web/authentication/switchuser/SwitchUserFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java b/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java index 9cdf90e9e8..1eb839d373 100644 --- a/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java +++ b/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java @@ -250,7 +250,7 @@ public class SwitchUserFilter extends GenericFilterBean implements ApplicationEv Authentication original = getSourceAuthentication(current); if (original == null) { - logger.error("Could not find original user Authentication object!"); + logger.debug("Could not find original user Authentication object!"); throw new AuthenticationCredentialsNotFoundException(messages.getMessage( "SwitchUserFilter.noOriginalAuthentication", "Could not find original Authentication object"));