diff options
author | Florian Dold <florian@dold.me> | 2024-03-26 10:43:18 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-26 10:43:18 +0100 |
commit | 4433a4d49cdce0b0b0491e834c6f598c5e923928 (patch) | |
tree | 9898e742574e251642390317f1d56aaa55c946b5 /packages/taler-wallet-core/src | |
parent | 4d6c7ca01c862d25a914313f49f4336a397e37d0 (diff) | |
download | wallet-core-4433a4d49cdce0b0b0491e834c6f598c5e923928.tar.xz |
-logging
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/pay-merchant.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts index 562cee4a6..401020f47 100644 --- a/packages/taler-wallet-core/src/pay-merchant.ts +++ b/packages/taler-wallet-core/src/pay-merchant.ts @@ -610,7 +610,8 @@ async function processDownloadProposal( if (proposal.purchaseStatus != PurchaseStatus.PendingDownloadingProposal) { logger.error( - `unexpected state ${proposal.purchaseStatus}/${PurchaseStatus[proposal.purchaseStatus] + `unexpected state ${proposal.purchaseStatus}/${ + PurchaseStatus[proposal.purchaseStatus] } for ${ctx.transactionId} in processDownloadProposal`, ); return TaskRunResult.finished(); @@ -866,7 +867,8 @@ async function createOrReusePurchase( oldProposal.claimToken === claimToken ) { logger.info( - `Found old proposal (status=${PurchaseStatus[oldProposal.purchaseStatus] + `Found old proposal (status=${ + PurchaseStatus[oldProposal.purchaseStatus] }) for order ${orderId} at ${merchantBaseUrl}`, ); if (oldProposal.purchaseStatus === PurchaseStatus.DialogShared) { @@ -2115,6 +2117,9 @@ async function processPurchasePay( if (resp.status >= 400 && resp.status <= 499) { logger.trace("got generic 4xx from merchant"); const err = await readTalerErrorResponse(resp); + if (logger.shouldLogTrace()) { + logger.trace(`error body: ${j2s(err)}`); + } throwUnexpectedRequestError(resp, err); } |