add better logging

This commit is contained in:
Torsten Dittmann 2021-12-09 16:37:41 +01:00
parent 83e1241db9
commit b2ac3fb5f3

View file

@ -181,7 +181,7 @@ class V11 extends Migration
$sum = \count($all); $sum = \count($all);
Console::log('Migrating Documents: ' . $offset . ' / ' . $this->oldProjectDB->getSum()); Console::log('Migrating Internal Documents: ' . $offset . ' / ' . $this->oldProjectDB->getSum());
foreach ($all as $document) { foreach ($all as $document) {
if ( if (
@ -214,7 +214,7 @@ class V11 extends Migration
$offset += $this->limit; $offset += $this->limit;
$total += $sum; $total += $sum;
} }
Console::log('Migrated ' . $total . ' Documents.'); Console::log('Migrated ' . $total . ' Internal Documents.');
} }
/** /**