aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-07-30 16:42:49 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-07-31 12:04:26 +0200
commit46774df18dad3bb7deeb0e9964233d8617ce9490 (patch)
tree2d20346c1f5e0113698055ba954215a1e7f66f2a /sonar-batch
parentf0a1c302002d395f16bf12846817ec73df56e92d (diff)
downloadsonarqube-46774df18dad3bb7deeb0e9964233d8617ce9490.tar.gz
sonarqube-46774df18dad3bb7deeb0e9964233d8617ce9490.zip
Improve quality
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/PersistentCacheProvider.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PersistentCacheProvider.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PersistentCacheProvider.java
index ea9f3a14fc4..05b3e058bc1 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PersistentCacheProvider.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/PersistentCacheProvider.java
@@ -19,6 +19,9 @@
*/
package org.sonar.batch.bootstrap;
+import org.sonar.api.utils.log.Logger;
+import org.sonar.api.utils.log.Loggers;
+
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
@@ -31,6 +34,7 @@ import org.sonar.home.cache.PersistentCache;
import org.sonar.home.cache.PersistentCacheBuilder;
public class PersistentCacheProvider extends ProviderAdapter {
+ private static final Logger LOG = Loggers.get(PersistentCacheProvider.class);
private PersistentCache cache;
public PersistentCache provide(UserProperties props) {
@@ -57,6 +61,7 @@ public class PersistentCacheProvider extends ProviderAdapter {
try (BufferedReader br = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))) {
return br.readLine();
} catch (IOException e) {
+ LOG.warn("Failed to get SQ version", e);
return null;
}
}