0

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?

Community
  • 1
  • 1
olivmir
  • 692
  • 10
  • 29
  • 1
    What logging framework do you use? Is there a relevant line before the stacktrace? – holmis83 Jan 16 '17 at 15:19
  • I'm using Log4J. What do you mean by relevant line? The two lines before are `org.apache.catalina.core.ApplicationDispatcher invoke` and `Schwerwiegend: Servlet.service() for servlet appServlet threw exception`. – olivmir Jan 17 '17 at 07:17

0 Answers0