Commit 89197eb0 authored by Dave Syer's avatar Dave Syer

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)
parent 2da4dc00
...@@ -91,6 +91,7 @@ public class LoggingApplicationListener implements SmartApplicationListener { ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment