aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce-task-projectanalysis/src
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2022-11-11 10:37:10 +0100
committersonartech <sonartech@sonarsource.com>2022-11-11 20:02:50 +0000
commitd5cb9df0be45fa016ed30caee56053828e1ecda7 (patch)
treeae47b3a47d615dc6e28c93e02b3dc19a3cf283e5 /server/sonar-ce-task-projectanalysis/src
parentf2b691a5853d36eb7dbfdba856390fd10f08d4b4 (diff)
downloadsonarqube-d5cb9df0be45fa016ed30caee56053828e1ecda7.tar.gz
sonarqube-d5cb9df0be45fa016ed30caee56053828e1ecda7.zip
[NO JIRA] Remove debug logs
Diffstat (limited to 'server/sonar-ce-task-projectanalysis/src')
-rw-r--r--server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/component/FileStatusesImpl.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/component/FileStatusesImpl.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/component/FileStatusesImpl.java
index 21471cbf0d1..045b7ffa14e 100644
--- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/component/FileStatusesImpl.java
+++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/component/FileStatusesImpl.java
@@ -22,8 +22,6 @@ package org.sonar.ce.task.projectanalysis.component;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
-import org.sonar.api.utils.log.Logger;
-import org.sonar.api.utils.log.Loggers;
import org.sonar.ce.task.projectanalysis.analysis.AnalysisMetadataHolder;
import org.sonar.ce.task.projectanalysis.source.SourceHashRepository;
import org.sonar.db.source.FileHashesDto;
@@ -32,14 +30,11 @@ import static com.google.common.base.Preconditions.checkState;
import static org.sonar.ce.task.projectanalysis.component.ComponentVisitor.Order.PRE_ORDER;
public class FileStatusesImpl implements FileStatuses {
- private static final Logger LOG = Loggers.get(FileStatusesImpl.class);
-
private final PreviousSourceHashRepository previousSourceHashRepository;
private final SourceHashRepository sourceHashRepository;
private final AnalysisMetadataHolder analysisMetadataHolder;
private final TreeRootHolder treeRootHolder;
private Set<String> fileUuidsMarkedAsUnchanged;
- private int notMarkedAsUnchanged = 0;
public FileStatusesImpl(AnalysisMetadataHolder analysisMetadataHolder, TreeRootHolder treeRootHolder, PreviousSourceHashRepository previousSourceHashRepository,
SourceHashRepository sourceHashRepository) {
@@ -54,8 +49,6 @@ public class FileStatusesImpl implements FileStatuses {
if (!analysisMetadataHolder.isPullRequest() && !analysisMetadataHolder.isFirstAnalysis()) {
new DepthTraversalTypeAwareCrawler(new Visitor()).visit(treeRootHolder.getRoot());
}
- LOG.warn("FILES MARKED AS UNCHANGED: " + fileUuidsMarkedAsUnchanged.size());
- LOG.warn("FILES NOT MARKED AS UNCHANGED: " + notMarkedAsUnchanged);
}
private class Visitor extends TypeAwareVisitorAdapter {
@@ -75,11 +68,8 @@ public class FileStatusesImpl implements FileStatuses {
if (canTrustUnchangedFlags) {
if (file.getFileAttributes().isMarkedAsUnchanged()) {
fileUuidsMarkedAsUnchanged.add(file.getUuid());
- } else {
- notMarkedAsUnchanged++;
}
} else {
- LOG.error("FILE HAS DIFFERENT HASH: " + file.getName());
fileUuidsMarkedAsUnchanged.clear();
}
}