From 493c0a76d5aad59104fbdc2a6d7f72a867404b6e Mon Sep 17 00:00:00 2001 From: Marc Stibane Date: Tue, 24 Oct 2023 20:02:15 +0200 Subject: Reduce logging --- packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts | 3 ++- packages/taler-wallet-core/src/wallet.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts index 50ae8d41b..284486506 100644 --- a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts +++ b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts @@ -616,7 +616,8 @@ export async function initiatePeerPushDebit( const sel = coinSelRes.result; - logger.info(`selected p2p coins (push): ${j2s(coinSelRes)}`); + logger.info(`selected p2p coins (push):`); + logger.trace(`${j2s(coinSelRes)}`); const totalAmount = await getTotalPeerPaymentCost( ws, diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index b3f8057a6..f524a7096 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -418,7 +418,7 @@ async function runTaskLoop( ws: InternalWalletState, opts: RetryLoopOpts = {}, ): Promise { - logger.info(`running task loop opts=${j2s(opts)}`); + logger.trace(`running task loop opts=${j2s(opts)}`); if (ws.isTaskLoopRunning) { logger.warn( "task loop already running, nesting the wallet-core task loop is deprecated and should be avoided", @@ -453,7 +453,7 @@ async function runTaskLoop( numDue++; } - logger.info( + logger.trace( `running task loop, iter=${iteration}, #tasks=${pending.pendingOperations.length} #lifeness=${numGivingLiveness}, #due=${numDue}`, ); -- cgit v1.2.3