aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-26 10:32:57 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-26 10:33:06 +0200
commita12541a7e4404e605fc0edccf2f0802365a20caf (patch)
tree6088b7f80ce411c913b97c947ddc78ac75a8e8fc /sonar-application/src
parent788189d99db2116687bff11122131b3b4ccdf3f7 (diff)
downloadsonarqube-a12541a7e4404e605fc0edccf2f0802365a20caf.tar.gz
sonarqube-a12541a7e4404e605fc0edccf2f0802365a20caf.zip
Fix logging of warnings when JDBC URL is not correct
Diffstat (limited to 'sonar-application/src')
-rw-r--r--sonar-application/src/main/java/org/sonar/application/JdbcSettings.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/JdbcSettings.java b/sonar-application/src/main/java/org/sonar/application/JdbcSettings.java
index 0a8f22839f5..7794cb745b1 100644
--- a/sonar-application/src/main/java/org/sonar/application/JdbcSettings.java
+++ b/sonar-application/src/main/java/org/sonar/application/JdbcSettings.java
@@ -26,7 +26,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
-import org.sonar.api.utils.log.Loggers;
+import org.slf4j.LoggerFactory;
import org.sonar.process.MessageException;
import org.sonar.process.ProcessProperties;
import org.sonar.process.Props;
@@ -99,7 +99,7 @@ public class JdbcSettings {
private void checkRecommendedParameter(String url, String val) {
if (!url.contains(val)) {
- Loggers.get(getClass()).warn("JDBC URL is recommended to have the property '{}'", val);
+ LoggerFactory.getLogger(getClass()).warn("JDBC URL is recommended to have the property '{}'", val);
}
}
}