mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 17:22:13 +00:00
Remove trace logs for PrePostAnnotationSecurityMetadataSource
Those logs were producing too much noise on the console without adding much value. Issue gh-10247
This commit is contained in:
parent
3b564b2026
commit
570092c467
@ -62,8 +62,6 @@ public class PrePostAnnotationSecurityMetadataSource extends AbstractMethodSecur
|
||||
if (method.getDeclaringClass() == Object.class) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
this.logger.trace(LogMessage.format("Looking for Pre/Post annotations for method '%s' on target class '%s'",
|
||||
method.getName(), targetClass));
|
||||
PreFilter preFilter = findAnnotation(method, targetClass, PreFilter.class);
|
||||
PreAuthorize preAuthorize = findAnnotation(method, targetClass, PreAuthorize.class);
|
||||
PostFilter postFilter = findAnnotation(method, targetClass, PostFilter.class);
|
||||
@ -71,7 +69,6 @@ public class PrePostAnnotationSecurityMetadataSource extends AbstractMethodSecur
|
||||
PostAuthorize postAuthorize = findAnnotation(method, targetClass, PostAuthorize.class);
|
||||
if (preFilter == null && preAuthorize == null && postFilter == null && postAuthorize == null) {
|
||||
// There is no meta-data so return
|
||||
this.logger.trace("No expression annotations found");
|
||||
return Collections.emptyList();
|
||||
}
|
||||
String preFilterAttribute = (preFilter != null) ? preFilter.value() : null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user