Commit c8079b60 authored by Phillip Webb's avatar Phillip Webb

Update trace logging to include Hibernate SQL

parent d4a7720a
......@@ -57,7 +57,7 @@ public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration {
@Value("${spring.jpa.database:DEFAULT}")
private Database database = Database.DEFAULT;
@Value("${spring.jpa.showSql:${spring.jpa.show_sql:false}}")
@Value("${spring.jpa.showSql:${spring.jpa.show_sql:true}}")
private boolean showSql;
@Value("${spring.jpa.ddlAuto:${spring.jpa.ddl_auto:none}}")
......
......@@ -89,6 +89,7 @@ public class LoggingApplicationContextInitializer implements
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.springframework");
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.apache.tomcat");
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.eclipse.jetty");
LOG_LEVEL_LOGGERS.add(LogLevel.TRACE, "org.hibernate.tool.hbm2ddl");
}
private final Log logger = LogFactory.getLog(getClass());
......
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