diff options
author | Florian Dold <florian@dold.me> | 2023-07-24 14:18:14 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-07-24 14:18:14 +0200 |
commit | 0b606028339d8256643ce60f11e72a090a301b58 (patch) | |
tree | 1407be01305430d2db1889bb6a8be0b6bbaf470d | |
parent | 9c17b7cd92c7c016097b64335076edd63893138b (diff) |
wallet-core: task loop logging
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index e457ba003..628a55e92 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -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; |