Add org.hibernate.SQL to the --debug logger levels

I think this fixes gh-446 (it seems unreasonable to want to log the DDL
even if it is not being executed)
This commit is contained in:
Dave Syer 2014-10-13 17:52:05 +01:00
parent 2da4dc00f0
commit 89197eb03b
2 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,7 @@ public class LoggingApplicationListener implements SmartApplicationListener {
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.apache.catalina");
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.eclipse.jetty");
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.hibernate.tool.hbm2ddl");
LOG_LEVEL_LOGGERS.add(LogLevel.DEBUG, "org.hibernate.SQL");
}
private static Class<?>[] EVENT_TYPES = { ApplicationStartedEvent.class,