I have written a custom AccessDeniedHandler (look at this answer) and it works fine . But I wonder, why the AccessDeniedException is still logged in the background:
org.springframework.security.access.AccessDeniedException: Zugriff verweigert
at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:84)
at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:233)
How to suppress this logging? Or better: How can I control, when to log this message and when not?