Skip to content

Enhance Logging in RequestMatcherDelegatingAuthorizationManage #14837

Closed
@canattofilipe

Description

@canattofilipe

Expected Behavior
Currently, the method RequestMatcherDelegatingAuthorizationManager.check is logging a message that doesn't provide much value.

When I enable the TRACE log level, I expect to see detailed logs that provide valuable information for troubleshooting purposes.

Current Behavior
The system is currently logging messages similar to this:
2024-04-03T14:38:42.649-03:00 TRACE 488138 --- [io-8080-exec-10] estMatcherDelegatingAuthorizationManager : Authorizing SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.savedrequest.SavedRequestAwareWrapper@5dff36af]

Logging a class that does not override the toString method merely populates the logs with uninformative content. Consider modifying this log instruction to include the URL being authorized, providing more context for troubleshooting.

Metadata

Metadata

Assignees

Labels

in: webAn issue in web modules (web, webmvc)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions