From 3bcac051ede24fa2ba82db3a425f0648c286d93e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 18 Jan 2023 00:17:07 +0100 Subject: wallet-core: log insufficient balance details --- packages/taler-wallet-core/src/operations/pay-merchant.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages') diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index 83c6b74d3..54ebdb5a4 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -1373,6 +1373,9 @@ export async function checkPaymentByProposalId( if (res.type !== "success") { logger.info("not allowing payment, insufficient coins"); + logger.info( + `insufficient balance details: ${j2s(res.insufficientBalanceDetails)}`, + ); return { status: PreparePayResultType.InsufficientBalance, contractTerms: d.contractTermsRaw, -- cgit v1.2.3