In AbstractFlushingEventListener* a HibernateException is caught, logged and then thrown again.
I would be nice if such exception handling could be avoided.
I have no way to hide the error message from our customers, when done this way. I could filter the messages out from this log, but I can't be sure that our customers do the same. And in that case they will see the log and think something is wrong, though the exception is caught and handlede properly in the code.
If you need to log the exception, then please use the debug method that only takes a String as parameter. Then the stacktrace will not appear more times in the log.
*
http://fisheye.jboss.org/browse/Hiberna ... 11588#l301