[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: -logging
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: -logging |
Date: |
Tue, 26 Mar 2024 10:43:24 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 4433a4d49 -logging
4433a4d49 is described below
commit 4433a4d49cdce0b0b0491e834c6f598c5e923928
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Mar 26 10:43:18 2024 +0100
-logging
---
.../src/integrationtests/test-age-restrictions-merchant.ts | 4 ----
packages/taler-wallet-core/src/pay-merchant.ts | 9 +++++++--
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);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: -logging,
gnunet <=