diff --git a/lib/Enterprise/RepositorySynchronizer.php b/lib/Enterprise/RepositorySynchronizer.php index e867eb7..1be1d8d 100644 --- a/lib/Enterprise/RepositorySynchronizer.php +++ b/lib/Enterprise/RepositorySynchronizer.php @@ -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}");