]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11077 remove noisy DEBUG log from IssueCreationDateCalculator
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 3 Aug 2018 14:09:56 +0000 (16:09 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 5 Aug 2018 21:17:31 +0000 (23:17 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/IssueCreationDateCalculator.java

index b8075217f9e6363cb4ad556f5ce6b2471d54a002..276f3b0b159b94f116445f8474db125fa6dfe565 100644 (file)
@@ -19,7 +19,6 @@
  */
 package org.sonar.server.computation.task.projectanalysis.issue;
 
-import java.time.format.DateTimeFormatter;
 import java.util.Comparator;
 import java.util.Date;
 import java.util.HashSet;
@@ -29,8 +28,6 @@ import java.util.Set;
 import java.util.function.Supplier;
 import java.util.stream.IntStream;
 import org.sonar.api.utils.DateUtils;
-import org.sonar.api.utils.log.Logger;
-import org.sonar.api.utils.log.Loggers;
 import org.sonar.core.issue.DefaultIssue;
 import org.sonar.core.issue.IssueChangeContext;
 import org.sonar.db.protobuf.DbCommons.TextRange;
@@ -56,8 +53,6 @@ import static org.sonar.core.issue.IssueChangeContext.createScan;
  */
 public class IssueCreationDateCalculator extends IssueVisitor {
 
-  private static final Logger LOGGER = Loggers.get(IssueCreationDateCalculator.class);
-
   private final ScmInfoRepository scmInfoRepository;
   private final IssueFieldsSetter issueUpdater;
   private final AnalysisMetadataHolder analysisMetadataHolder;
@@ -173,8 +168,6 @@ public class IssueCreationDateCalculator extends IssueVisitor {
   }
 
   private void updateDate(DefaultIssue issue, Date scmDate) {
-    LOGGER.debug("Issue {} seems to be raised in consequence of a modification of the quality profile. Backdating the issue to {}.", issue,
-      DateTimeFormatter.ISO_INSTANT.format(scmDate.toInstant()));
     issueUpdater.setCreationDate(issue, scmDate, changeContext);
   }