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.

No comments:

Is Blogging No Longer a Thing?

As I embark on my new journey to learn the Rust programming language, I find myself pondering—where have all the blogs gone? In search of pr...