taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 39600bcd74a92e3444b5ba66480ce4a5dc225c72
parent 1608b872a8d501865eba229664fcc9fa1669c573
Author: Florian Dold <florian@dold.me>
Date:   Mon, 23 Oct 2023 16:04:28 +0200

-logging

Diffstat:
Mpackages/taler-wallet-core/src/operations/pay-peer-pull-debit.ts | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/operations/pay-peer-pull-debit.ts b/packages/taler-wallet-core/src/operations/pay-peer-pull-debit.ts @@ -401,7 +401,9 @@ export async function confirmPeerPullDebit( const instructedAmount = Amounts.parseOrThrow(peerPullInc.amount); const coinSelRes = await selectPeerCoins(ws, { instructedAmount }); - logger.info(`selected p2p coins (pull): ${j2s(coinSelRes)}`); + if (logger.shouldLogTrace()) { + logger.trace(`selected p2p coins (pull): ${j2s(coinSelRes)}`); + } if (coinSelRes.type !== "success") { throw TalerError.fromDetail( @@ -568,7 +570,9 @@ export async function preparePeerPullDebit( const instructedAmount = Amounts.parseOrThrow(contractTerms.amount); const coinSelRes = await selectPeerCoins(ws, { instructedAmount }); - logger.info(`selected p2p coins (pull): ${j2s(coinSelRes)}`); + if (logger.shouldLogTrace()) { + logger.trace(`selected p2p coins (pull): ${j2s(coinSelRes)}`); + } if (coinSelRes.type !== "success") { throw TalerError.fromDetail(