diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-10-26 14:13:32 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-10-26 14:13:32 +0200 |
commit | 92ff3f743b31c32d001da2fb7e2eb98ef112aab8 (patch) | |
tree | 7849e81bf2cee685a0787fdc5db8ecc04cbbcbea /sonar-db | |
parent | 16fde3e774797d7434c6bd4165951fdad2d4e3cb (diff) | |
download | sonarqube-92ff3f743b31c32d001da2fb7e2eb98ef112aab8.tar.gz sonarqube-92ff3f743b31c32d001da2fb7e2eb98ef112aab8.zip |
SONAR-8283 Add logs
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/version/v62/UpdateQualityGateConditionsOnCoverage.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/version/v62/UpdateQualityGateConditionsOnCoverage.java b/sonar-db/src/main/java/org/sonar/db/version/v62/UpdateQualityGateConditionsOnCoverage.java index 0f65516e65f..f047775c563 100644 --- a/sonar-db/src/main/java/org/sonar/db/version/v62/UpdateQualityGateConditionsOnCoverage.java +++ b/sonar-db/src/main/java/org/sonar/db/version/v62/UpdateQualityGateConditionsOnCoverage.java @@ -28,6 +28,8 @@ import java.util.Optional; import java.util.function.Function; import java.util.stream.Collectors; import org.sonar.api.measures.CoreMetrics; +import org.sonar.api.utils.log.Logger; +import org.sonar.api.utils.log.Loggers; import org.sonar.db.Database; import org.sonar.db.version.BaseDataChange; import org.sonar.db.version.Select; @@ -48,6 +50,8 @@ import static org.sonar.db.DatabaseUtils.repeatCondition; */ public class UpdateQualityGateConditionsOnCoverage extends BaseDataChange { + private static final Logger LOGGER = Loggers.get(UpdateQualityGateConditionsOnCoverage.class); + private static final List<String> COVERAGE_METRIC_KEYS = ImmutableList.of( "coverage", "lines_to_cover", "uncovered_lines", "line_coverage", "conditions_to_cover", "uncovered_conditions", "branch_coverage"); @@ -69,6 +73,7 @@ public class UpdateQualityGateConditionsOnCoverage extends BaseDataChange { if (qualityGateIds.isEmpty()) { return; } + LOGGER.info("Migrating {} quality gates", qualityGateIds.size()); new Migration(context, metrics, qualityGateIds).execute(); } |