Is there anyway I can include the SQL for a hibernate exception in Grails? I know I can use SQL logging and then cross correlate threads, request id etc, but it would be nice if there was some configuration I could use for this.
So if hibernate throws a StaleStateException, I can see the SQL it was trying to execute at that time?
Thanks