From 1504e253954c49f002f70c6ed22caf9b3f081f28 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 2 Oct 2015 15:43:11 +0200 Subject: [PATCH] Improve debug logs --- .../main/java/org/sonar/runner/impl/ServerConnection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java b/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java index 8a40f41..47e8e5e 100644 --- a/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java +++ b/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java @@ -21,10 +21,6 @@ package org.sonar.runner.impl; import com.github.kevinsawicki.http.HttpRequest; import com.github.kevinsawicki.http.HttpRequest.HttpRequestException; -import org.apache.commons.io.FileUtils; -import org.sonar.runner.cache.Logger; -import org.sonar.runner.cache.PersistentCache; - import java.io.File; import java.io.IOException; import java.net.ConnectException; @@ -34,6 +30,9 @@ import java.text.MessageFormat; import java.util.Properties; import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.apache.commons.io.FileUtils; +import org.sonar.runner.cache.Logger; +import org.sonar.runner.cache.PersistentCache; class ServerConnection { @@ -84,6 +83,7 @@ class ServerConnection { * @throws IOException If the HTTP response code is != 200 */ private String downloadString(String url, boolean saveCache) throws HttpRequestException, IOException { + logger.debug("Download: " + url); HttpRequest httpRequest = null; try { httpRequest = newHttpRequest(new URL(url)); -- 2.39.5