FullAjaxExceptionHandler - exclude exceptions from logging #278

Closed
djmj opened this Issue Jun 27, 2016 · 2 comments

Projects

None yet

2 participants

@djmj
djmj commented Jun 27, 2016

I came across the same problem as there are already multiple questions at SO on how to not log a specific Exception like ViewExpiredException in FullAjaxExceptionHandler.

What about declaring a comma separated list of exceptions in web.xml which shall not be logged, so we do not need to override the handler and factory.

<context-param>
    <param-name>org.omnifaces.EXCEPTION_TYPES_IGNORE_LOG</param-name>
    <param-value>
        javax.faces.application.ViewExpiredException
    </param-value>
</context-param>
@BalusC
Member
BalusC commented Jun 28, 2016

+1

@BalusC BalusC closed this in 15502aa Jul 2, 2016
@BalusC
Member
BalusC commented Jul 2, 2016

Enhancement is available in today's latest 2.5-SNAPSHOT.

Thank you for improving OmniFaces!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment