Skip to content

Commit 570092c

Browse files
Remove trace logs for PrePostAnnotationSecurityMetadataSource
Those logs were producing too much noise on the console without adding much value. Issue gh-10247
1 parent 3b564b2 commit 570092c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/src/main/java/org/springframework/security/access/prepost/PrePostAnnotationSecurityMetadataSource.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,13 @@ public Collection<ConfigAttribute> getAttributes(Method method, Class<?> targetC
6262
if (method.getDeclaringClass() == Object.class) {
6363
return Collections.emptyList();
6464
}
65-
this.logger.trace(LogMessage.format("Looking for Pre/Post annotations for method '%s' on target class '%s'",
66-
method.getName(), targetClass));
6765
PreFilter preFilter = findAnnotation(method, targetClass, PreFilter.class);
6866
PreAuthorize preAuthorize = findAnnotation(method, targetClass, PreAuthorize.class);
6967
PostFilter postFilter = findAnnotation(method, targetClass, PostFilter.class);
7068
// TODO: Can we check for void methods and throw an exception here?
7169
PostAuthorize postAuthorize = findAnnotation(method, targetClass, PostAuthorize.class);
7270
if (preFilter == null && preAuthorize == null && postFilter == null && postAuthorize == null) {
7371
// There is no meta-data so return
74-
this.logger.trace("No expression annotations found");
7572
return Collections.emptyList();
7673
}
7774
String preFilterAttribute = (preFilter != null) ? preFilter.value() : null;

0 commit comments

Comments
 (0)