summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-03-26 10:43:18 +0100
committerFlorian Dold <florian@dold.me>2024-03-26 10:43:18 +0100
commit4433a4d49cdce0b0b0491e834c6f598c5e923928 (patch)
tree9898e742574e251642390317f1d56aaa55c946b5 /packages
parent4d6c7ca01c862d25a914313f49f4336a397e37d0 (diff)
downloadwallet-core-4433a4d49cdce0b0b0491e834c6f598c5e923928.tar.gz
wallet-core-4433a4d49cdce0b0b0491e834c6f598c5e923928.tar.bz2
wallet-core-4433a4d49cdce0b0b0491e834c6f598c5e923928.zip
-logging
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts4
-rw-r--r--packages/taler-wallet-core/src/pay-merchant.ts9
2 files changed, 7 insertions, 6 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts b/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
index cdb100c65..bba571328 100644
--- a/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
+++ b/packages/taler-harness/src/integrationtests/test-age-restrictions-merchant.ts
@@ -48,10 +48,6 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) {
},
);
- const merchantClient = new MerchantApiClient(
- merchant.makeInstanceBaseUrl("default"),
- );
-
const { walletClient: walletClientTwo } = await createWalletDaemonWithClient(
t,
{
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);
}