From: Duarte Meneses Date: Fri, 11 Nov 2022 09:37:10 +0000 (+0100) Subject: [NO JIRA] Remove debug logs X-Git-Tag: 9.8.0.63668~133 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5cb9df0be45fa016ed30caee56053828e1ecda7;p=sonarqube.git [NO JIRA] Remove debug logs --- 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 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(); } }