diff options
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRunDatabase.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRunDatabase.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRunDatabase.java index 837e60d0731..a1ae25d3b6d 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRunDatabase.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRunDatabase.java @@ -20,6 +20,7 @@ package org.sonar.batch.bootstrap; import com.google.common.base.Throwables; +import org.apache.commons.io.FileUtils; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -74,6 +75,9 @@ public class DryRunDatabase implements BatchComponent { private void downloadDatabase(String projectKey, File toFile) { try { server.download("/batch_bootstrap/db?project=" + projectKey, toFile); + if (LOG.isDebugEnabled()) { + LOG.debug("Dry Run database size: {}", FileUtils.byteCountToDisplaySize(FileUtils.sizeOf(toFile))); + } } catch (SonarException e) { Throwable rootCause = Throwables.getRootCause(e); if ((rootCause instanceof HttpException) && (((HttpException) rootCause).getResponseCode() == 401)) { |