From 938b48413067f3b24c6ce664d5f366c55f3d6557 Mon Sep 17 00:00:00 2001 From: Bishal Prasad Date: Thu, 23 Mar 2023 16:59:47 +0530 Subject: [PATCH] add more logs --- dist/restore/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/restore/index.js b/dist/restore/index.js index 73898ca..98c210b 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -28387,6 +28387,7 @@ class Batch { */ parallelExecute() { const local_index = this.index++; + console.log(`parallelExecute ${local_index} Active count: ${this.actives} Completed count: ${this.completed} total: ${this.operations.length}`); if (this.state === BatchStates.Error) { return; } @@ -28397,9 +28398,8 @@ class Batch { while (this.actives < this.concurrency) { const operation = this.nextOperation(); if (operation) { - console.log(`parallelExecute ${local_index} starting execution of operation ${this.operation}. Active count: ${this.actives}`); + console.log(`parallelExecute ${local_index} starting execution of operation ${this.offset}. Active count: ${this.actives}`); operation(); - console.log(`parallelExecute ${local_index} finished execution of operation ${this.operation}. Active count: ${this.actives}`); } else { return;