feat: combine log entries into single sum-up entry

This commit is contained in:
Björn Fromme
2026-03-25 14:10:25 +01:00
parent 6f07678f04
commit 96321005e0
+2 -1
View File
@@ -142,7 +142,6 @@ class BpnXmlSyncCommand extends Command
);
$io->progressFinish();
$this->logger->info('Travel snapshot XML sync triggered by xml-sync command', $snapshotResult);
}
$successMessage = sprintf('Sync complete: %d files updated, %d files deleted', $syncResult['updated'], $syncResult['deleted']);
@@ -153,6 +152,8 @@ class BpnXmlSyncCommand extends Command
$this->logger->info('XML sync completed', [
'files_updated' => $syncResult['updated'],
'files_deleted' => $syncResult['deleted'],
'snapshots_processed' => $snapshotResult['processed'] ?? null,
'snapshots_failed' => $snapshotResult['failed'] ?? null,
'remote_timestamp' => $remoteInfo->lastTransfer->format('c'),
]);