Skip to content

Commit bc07575

Browse files
committed
improved logs
1 parent d571c9b commit bc07575

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/processSnapshot.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,10 +673,12 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
673673
ctx.log.debug(`Timeout reached (${MAX_WAIT_FOR_REQUEST_CALL/1000}s). Stopping wait for pending requests.`);
674674
break;
675675
}
676-
ctx.log.debug('Pending requests:', Array.from(pendingRequests.keys()));
676+
ctx.log.debug(`Pending requests: ${Array.from(pendingRequests)}`);
677677
await new Promise(resolve => setTimeout(resolve, 1000));
678678
}
679-
ctx.log.debug('No pending requests.');
679+
if(pendingRequests.size === 0) {
680+
ctx.log.debug('No pending requests.');
681+
}
680682
};
681683

682684
await checkPending();

0 commit comments

Comments
 (0)