commit 493c0a76d5aad59104fbdc2a6d7f72a867404b6e
parent 21fda5751d61594ee94d995232f0ce66647533b2
Author: Marc Stibane <marc@taler.net>
Date: Tue, 24 Oct 2023 20:02:15 +0200
Reduce logging
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
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
@@ -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
@@ -418,7 +418,7 @@ async function runTaskLoop(
ws: InternalWalletState,
opts: RetryLoopOpts = {},
): Promise<TaskLoopResult> {
- 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}`,
);