Skip to content

Commit

Permalink
Condense global src/target logging format
Browse files Browse the repository at this point in the history
  • Loading branch information
linc committed Dec 27, 2022
1 parent 0d5f566 commit b9b0535
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,18 @@ public static function run(Request $request)
$exportModel->comment('Permissions are not migrated. Verify all permissions afterward.');

// Log source.
$exportModel->comment("Source: " . $source::SUPPORTED['name']);
$exportModel->comment("Export connection: " . $exportSourceCM->getAlias());
$exportModel->comment("Source: " . $source::SUPPORTED['name'] . " (" . $exportSourceCM->getAlias() . ")");

// Setup target & modes.
$target = false;
if ($request->get('output') !== 'file') {
$target = targetFactory($request->get('output'));

// Log target.
$exportModel->comment("Target: " . $target::SUPPORTED['name']);
$exportModel->comment("Import connection: " . $importSourceCM->getAlias());
$exportModel->comment("Target: " . $target::SUPPORTED['name'] . " (" . $importSourceCM->getAlias() . ")");

self::setModes($source, $target);

// Log flags.
$exportModel->comment("Use Discussion Body flag: " .
$exportModel->comment("Flag: Use Discussion Body: " .
($target->getDiscussionBodyMode() ? 'Enabled' : 'Disabled'));
}

Expand Down

0 comments on commit b9b0535

Please sign in to comment.