Skip to content

Commit c85e2e0

Browse files
committed
feat: 🔊 Log empty batch for transparency
1 parent 8230647 commit c85e2e0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎modules/ppcp-store-sync/src/Ingestion/IngestionManager.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ public function process_next_batch(): void {
114114
$product_ids = $this->batch_provider->get_batch();
115115

116116
if ( empty( $product_ids ) ) {
117-
return; // Nothing to sync.
117+
$this->logger->info( '[Sync] Empty batch - no products need syncing' );
118+
119+
return;
118120
}
119121

120122
$sync_job = $this->create_new_sync_job( $product_ids );

0 commit comments

Comments
 (0)