wallet-core: task loop logging
This commit is contained in:
parent
9c17b7cd92
commit
0b60602833
@ -438,6 +438,10 @@ async function runTaskLoop(
|
|||||||
numDue++;
|
numDue++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.info(
|
||||||
|
`running task loop, iter=${iteration}, #tasks=${pending.pendingOperations.length} #lifeness=${numGivingLiveness}, #due=${numDue}`,
|
||||||
|
);
|
||||||
|
|
||||||
if (opts.stopWhenDone && numGivingLiveness === 0 && iteration !== 0) {
|
if (opts.stopWhenDone && numGivingLiveness === 0 && iteration !== 0) {
|
||||||
logger.warn(`stopping, as no pending operations have lifeness`);
|
logger.warn(`stopping, as no pending operations have lifeness`);
|
||||||
ws.isTaskLoopRunning = false;
|
ws.isTaskLoopRunning = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user