grails-plugins/grails-platform-core — pull request #2 by trashhalo (2013-04-02 23:19:02+00:00)
Title: Log errors coming out Listeners and increase the severity

Right now if a listener throws an exception during an async event the stack of that error and the original exception is never logged at all even at trace level. We are currently working around this by adding a onError block to every event call that logs each of the returned errors so we can know if something failing unexpectedly.

Suggested changes in pull request:
1. Add the exception to the log statement that is already there.
2. Increase the severity from debug to warn.

*Note: There is a throw already in the block that picks up the error which works fine when its called in the same thread. But when its run in the async executor the throw doesnt seem to get caught by anyone else.