]> source.dussan.org Git - sonarqube.git/commitdiff
Do not log the size of uncompressed CE report
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 26 Oct 2015 21:23:30 +0000 (22:23 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 26 Oct 2015 21:23:30 +0000 (22:23 +0100)
Value is useless compared to the time required to
compute it. Size of compressed report is enough.

server/sonar-server/src/main/java/org/sonar/server/computation/step/ExtractReportStep.java

index fad6a3223f7bb9387b82dba36987cae3958f30fc..83d830af28ad997023c7479f1b0f0940a0efff00 100644 (file)
@@ -57,8 +57,7 @@ public class ExtractReportStep implements ComputationStep {
     try {
       ZipUtils.unzip(zip, dir);
       reportDirectoryHolder.setDirectory(dir);
-      LOG.info("Analysis report extracted | size={} | compressed={}",
-        FileUtils.byteCountToDisplaySize(FileUtils.sizeOf(dir)), FileUtils.byteCountToDisplaySize(FileUtils.sizeOf(zip)));
+      LOG.info("Analysis report extracted | compressedSize={}", FileUtils.byteCountToDisplaySize(FileUtils.sizeOf(zip)));
     } catch (IOException e) {
       throw new IllegalStateException(String.format("Fail to unzip %s into %s", zip, dir), e);
     }