gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 02/03: -logging


From: gnunet
Subject: [taler-wallet-core] 02/03: -logging
Date: Mon, 23 Oct 2023 16:04:45 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

commit 39600bcd74a92e3444b5ba66480ce4a5dc225c72
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Oct 23 16:04:28 2023 +0200

    -logging
---
 packages/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
index 48cbf574f..e7cf22187 100644
--- 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(

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]