diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-01-13 17:10:12 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-01-13 17:10:12 +0100 |
commit | 28d4c0e395332eae5a1e8a128fe573ee0de7dd0c (patch) | |
tree | 8d31f14749b22849e4c8567702f8aca7c86bd85a | |
parent | 5be796e6040e5608a70e4dd53dadedd1dfd6ff76 (diff) | |
download | sonarqube-28d4c0e395332eae5a1e8a128fe573ee0de7dd0c.tar.gz sonarqube-28d4c0e395332eae5a1e8a128fe573ee0de7dd0c.zip |
Hardcode usage of SLF4J in MyBatis
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java b/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java index 5547f4586f2..cd055ef0ac6 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java @@ -22,6 +22,7 @@ package org.sonar.core.persistence; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; import org.apache.ibatis.builder.xml.XMLMapperBuilder; +import org.apache.ibatis.logging.LogFactory; import org.apache.ibatis.mapping.Environment; import org.apache.ibatis.session.*; import org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory; @@ -53,6 +54,7 @@ public class MyBatis implements BatchComponent, ServerComponent { } public MyBatis start() throws IOException { + LogFactory.useSlf4jLogging(); Configuration conf = new Configuration(); conf.setEnvironment(new Environment("production", createTransactionFactory(), database.getDataSource())); conf.setUseGeneratedKeys(true); |