summaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-05-26 10:28:05 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-05-26 10:28:36 +0200
commit79549791069602e3750357c431bde47667b04233 (patch)
tree4610db4b788247dabcd9a734053d168698baac0d /sonar-batch
parent1ebef1e3ddf258bfcf4c9b2960dc49b017cc4d46 (diff)
downloadsonarqube-79549791069602e3750357c431bde47667b04233.tar.gz
sonarqube-79549791069602e3750357c431bde47667b04233.zip
Fix log format
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/InputFileBuilder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/InputFileBuilder.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/InputFileBuilder.java
index ca456838bf9..10b888344b9 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/InputFileBuilder.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/InputFileBuilder.java
@@ -20,6 +20,7 @@
package org.sonar.batch.scan.filesystem;
import org.apache.commons.io.FilenameUtils;
+import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.InputFile;
@@ -35,6 +36,8 @@ import java.util.List;
class InputFileBuilder {
+ private static final Logger LOG = LoggerFactory.getLogger(InputFileBuilder.class);
+
private final String moduleKey;
private final PathResolver pathResolver;
private final LanguageDetection langDetection;
@@ -76,8 +79,7 @@ class InputFileBuilder {
DefaultInputFile create(File file) {
String relativePath = pathResolver.relativePath(fs.baseDir(), file);
if (relativePath == null) {
- LoggerFactory.getLogger(getClass()).warn(
- "File '%s' is ignored. It is not located in module basedir '%s'.", file.getAbsolutePath(), fs.baseDir());
+ LOG.warn("File '{}' is ignored. It is not located in module basedir '{}'.", file.getAbsolutePath(), fs.baseDir());
return null;
}
DefaultInputFile inputFile = new DefaultInputFile(relativePath);