File tree 1 file changed +4
-4
lines changed
core/src/main/java/org/springframework/security/authentication 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -187,16 +187,16 @@ public Authentication authenticate(Authentication authentication) throws Authent
187
187
}
188
188
catch (AccountStatusException ex ) {
189
189
prepareException (ex , authentication );
190
- logger .debug (LogMessage .format ("Authentication failed for user '%s' since account status is %s" ,
191
- authentication .getName (), ex .getMessage ()));
190
+ logger .debug (LogMessage .format ("Authentication failed for user '%s' since their account status is %s" ,
191
+ authentication .getName (), ex .getMessage ()), ex );
192
192
// SEC-546: Avoid polling additional providers if auth failure is due to
193
193
// invalid account status
194
194
throw ex ;
195
195
}
196
196
catch (InternalAuthenticationServiceException ex ) {
197
197
prepareException (ex , authentication );
198
- logger .debug (LogMessage .format (
199
- "Authentication failed due to an internal authentication service error: %s" , ex . getMessage ()));
198
+ logger .debug (LogMessage .format ("Authentication service failed internally for user '%s'" ,
199
+ authentication . getName ()), ex );
200
200
// SEC-546: Avoid polling additional providers if auth failure is due to
201
201
// invalid account status
202
202
throw ex ;
You can’t perform that action at this time.
0 commit comments