From 6e3be62be15633a55cc66b0231edc542a27ee449 Mon Sep 17 00:00:00 2001 From: Dieter Holvoet Date: Wed, 14 Dec 2022 19:38:41 +0100 Subject: [PATCH] Stop logging 'Migration @id is already Idle' --- src/Drupal/Commands/core/MigrateRunnerCommands.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Drupal/Commands/core/MigrateRunnerCommands.php b/src/Drupal/Commands/core/MigrateRunnerCommands.php index 614efb93c7..762a887524 100644 --- a/src/Drupal/Commands/core/MigrateRunnerCommands.php +++ b/src/Drupal/Commands/core/MigrateRunnerCommands.php @@ -609,9 +609,7 @@ public function resetStatus(?string $migrationIds = null, array $options = ['all foreach ($migrations as $migrationId => $migration) { /** @var MigrationInterface $migration */ $status = $migration->getStatus(); - if ($status == MigrationInterface::STATUS_IDLE) { - $this->logger()->warning(dt('Migration @id is already Idle', ['@id' => $migrationId])); - } else { + if ($status !== MigrationInterface::STATUS_IDLE) { $migration->setStatus(MigrationInterface::STATUS_IDLE); $this->logger()->success(dt('Migration @id reset to Idle', ['@id' => $migrationId])); }