aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-01-18 00:17:07 +0100
committerFlorian Dold <florian@dold.me>2023-01-18 00:17:07 +0100
commit3bcac051ede24fa2ba82db3a425f0648c286d93e (patch)
tree13b30ad1d2b66e54c81df394ec21eb3aff66e0c1
parent420493b3e608f3b245ebae308a318883f9f605f7 (diff)
wallet-core: log insufficient balance details
-rw-r--r--packages/taler-wallet-core/src/operations/pay-merchant.ts3
1 files changed, 3 insertions, 0 deletions
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,