Skip to content

Commit

Permalink
Stop logging 'Migration @id is already Idle'
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed Dec 14, 2022
1 parent f2f41c6 commit 6e3be62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Drupal/Commands/core/MigrateRunnerCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
}
Expand Down

0 comments on commit 6e3be62

Please sign in to comment.