New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FullAjaxExceptionHandler - exclude exceptions from logging #278

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

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

This comment has been minimized.

Show comment
Hide comment
@BalusC

BalusC Jun 28, 2016

Member

+1

Member

BalusC commented Jun 28, 2016

+1

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

@BalusC

This comment has been minimized.

Show comment
Hide comment
@BalusC

BalusC Jul 2, 2016

Member

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

Thank you for improving OmniFaces!

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