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)
pull/1699/merge
Dave Syer 10 years ago
parent 2da4dc00f0
commit 89197eb03b

@ -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.apache.catalina");
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.eclipse.jetty"); LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.eclipse.jetty");
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.hibernate.tool.hbm2ddl"); 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, private static Class<?>[] EVENT_TYPES = { ApplicationStartedEvent.class,

Loading…
Cancel
Save