wallet-core: task loop logging

This commit is contained in:
Florian Dold 2023-07-24 14:18:14 +02:00
parent 9c17b7cd92
commit 0b60602833
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -438,6 +438,10 @@ async function runTaskLoop(
numDue++;
}
logger.info(
`running task loop, iter=${iteration}, #tasks=${pending.pendingOperations.length} #lifeness=${numGivingLiveness}, #due=${numDue}`,
);
if (opts.stopWhenDone && numGivingLiveness === 0 && iteration !== 0) {
logger.warn(`stopping, as no pending operations have lifeness`);
ws.isTaskLoopRunning = false;