aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-01-13 17:10:12 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-01-13 17:10:12 +0100
commit28d4c0e395332eae5a1e8a128fe573ee0de7dd0c (patch)
tree8d31f14749b22849e4c8567702f8aca7c86bd85a
parent5be796e6040e5608a70e4dd53dadedd1dfd6ff76 (diff)
downloadsonarqube-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.java2
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);