aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-main
diff options
context:
space:
mode:
authorDaniel Trebbien <dtrebbien@gmail.com>2017-10-09 10:54:17 -0500
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-10-10 14:23:40 +0200
commita2451079763bfc04f0e0bcdbd2ee158da3446fe4 (patch)
tree8e4d6b93fa9e38a8678d3961111238ee83950e26 /server/sonar-main
parent6972869252c7be41fb0230d9f5a8c3aa8b12c95e (diff)
downloadsonarqube-a2451079763bfc04f0e0bcdbd2ee158da3446fe4.tar.gz
sonarqube-a2451079763bfc04f0e0bcdbd2ee158da3446fe4.zip
Fix two logger calls
One logger call was using incorrect syntax for a formatting anchor ('%s' should be '{}'). The other logger call had three formatting anchors, but only passed two values. These issues were found by SLF4J Helper for NetBeans IDE: http://plugins.netbeans.org/plugin/72557/
Diffstat (limited to 'server/sonar-main')
-rw-r--r--server/sonar-main/src/main/java/org/sonar/application/config/FileSystemSettings.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/config/FileSystemSettings.java b/server/sonar-main/src/main/java/org/sonar/application/config/FileSystemSettings.java
index b7953aca498..baa056012fe 100644
--- a/server/sonar-main/src/main/java/org/sonar/application/config/FileSystemSettings.java
+++ b/server/sonar-main/src/main/java/org/sonar/application/config/FileSystemSettings.java
@@ -44,13 +44,13 @@ public class FileSystemSettings implements Consumer<Props> {
}
private static File ensurePropertyIsAbsolutePath(Props props, String propKey) {
- File homeDir = props.nonNullValueAsFile(PATH_HOME);
// default values are set by ProcessProperties
String path = props.nonNullValue(propKey);
File d = new File(path);
if (!d.isAbsolute()) {
+ File homeDir = props.nonNullValueAsFile(PATH_HOME);
d = new File(homeDir, path);
- LOG.trace("Overriding property {} from relative path '{}' to absolute path '{}'", path, d.getAbsolutePath());
+ LOG.trace("Overriding property {} from relative path '{}' to absolute path '{}'", propKey, path, d.getAbsolutePath());
props.set(propKey, d.getAbsolutePath());
}
return d;