I´d also prefer not to log the whole exception as this is more like a standard-issue and logging the whole stack-trace always looks like having a problem or a bug in the application, which is not really the case if the user is not logged in.
I have a related issue,
If in pages.xml I define:
<exception class="javax.persistence.OptimisticLockException"> <redirect view-id="/user_error.xhtml"> <message>Sorry but someone else has updated that record.</message> </redirect> </exception>
I'd like to NOT see an exception in the server log.
Could we have a flag in pages.xml or something to say suppressLogging ?