chore: add debug logging to workflow sync deduplication

This commit is contained in:
Jonathan Miller
2026-04-26 15:54:43 -05:00
parent 531e462d9d
commit 5548eae35d
+10 -1
View File
@@ -195,7 +195,16 @@ class RepositorySynchronizer
}
}
$this->logger->logInfo("Loaded " . count($filesToSync) . " sync entries from definition for {$platform}");
$defCount = count($filesToSync) - count($sharedFiles);
$sharedAdded = count($filesToSync) - $defCount;
$sharedTotal = count($sharedFiles);
$this->logger->logInfo("Loaded " . count($filesToSync) . " sync entries for {$platform} (def={$defCount}, shared={$sharedAdded}/{$sharedTotal} added, " . ($sharedTotal - $sharedAdded) . " deduped)");
// Log shared workflow destinations for debugging
foreach ($sharedFiles as $sf) {
$dest = $sf['destination'] ?? '?';
$added = !isset($seen[$dest]) ? 'ADDED' : 'DEDUPED';
$this->logger->logInfo(" shared: {$dest} [{$added}]");
}
if (empty($filesToSync)) {
$this->logger->logWarning("No syncable entries found in definition for platform '{$platform}', skipping {$repo}");