Skip to content

Use correct logger for user details configuration warning - #19637

Open
avsan wants to merge 1 commit into
spring-projects:mainfrom
avsan:fix/gh-19595-user-details-logger
Open

Use correct logger for user details configuration warning#19637
avsan wants to merge 1 commit into
spring-projects:mainfrom
avsan:fix/gh-19595-user-details-logger

Conversation

@avsan

@avsan avsan commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Use the InitializeUserDetailsBeanManagerConfigurer logger category for
the user details configuration warning.

The warning tells users to configure the logging level for
InitializeUserDetailsBeanManagerConfigurer, but the logger is currently
created from the inner InitializeUserDetailsManagerConfigurer class.

As a result, the logger that emits the warning does not match the logger
category referenced by the warning message.

Changes

  • Use InitializeUserDetailsBeanManagerConfigurer.class when creating
    the logger.
  • Add regression coverage verifying that the warning is emitted using
    the documented logger category.

Testing

  • Added a regression test that failed before the change because the
    warning was emitted from the inner configurer logger.
  • The regression test passes after the fix.
  • AuthenticationConfigurationTests passes.
  • :spring-security-config:checkFormat passes.
  • git diff --check is clean.

Closes gh-19595

Use the InitializeUserDetailsBeanManagerConfigurer logger category for
the configuration warning so that the documented logger name matches
the logger that emits the warning.

Add regression coverage for the logger category.

Closes spring-projectsgh-19595

Signed-off-by: avsan <abhishekrajabca@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InitializeUserDetailsBeanManagerConfigurer warning names wrong logger (inner class vs. suggested outer class)

2 participants