Monday, February 24, 2014

View sql log in grails

Today I've learned from https://burtbeckwith.com/blog/?p=1604 that if you want to view what is the query that is actually run by gorm you just have to add:

debug 'org.hibernate.SQL'
trace 'org.hibernate.type.descriptor.sql.BasicBinder'

into your Log4j configuration at Config.groovy. Pretty important info.

Haiya ala Solah