commit 231e264e94aa559c8922a14cc1d5392c7a165ed0
parent 007c75084c3f26aa0d6e3c438b541ea0dd3ba598
Author: Florian Dold <florian@dold.me>
Date: Mon, 1 Jul 2024 15:44:32 +0200
wallet-core: logging
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
@@ -3162,7 +3162,6 @@ export async function confirmWithdrawal(
requireExchangeTosAcceptedOrThrow(exchange);
const talerWithdrawUri = withdrawalGroup.wgInfo.bankInfo.talerWithdrawUri;
- const confirmUrl = withdrawalGroup.wgInfo.bankInfo.confirmUrl;
/**
* The only reason this could be undefined is because it is an old wallet
@@ -3278,7 +3277,16 @@ export async function confirmWithdrawal(
}
if (pending) {
+ wex.oc.observe({
+ type: ObservabilityEventType.Message,
+ contents: "waiting for withdrawal operation to be registered with bank",
+ });
await waitWithdrawalRegistered(wex, ctx);
+ wex.oc.observe({
+ type: ObservabilityEventType.Message,
+ contents:
+ "done waiting for withdrawal operation to be registered with bank",
+ });
}
}
@@ -3302,7 +3310,6 @@ export async function acceptBankIntegratedWithdrawal(
amount?: AmountLike;
},
): Promise<AcceptWithdrawalResponse> {
-
wex.oc.observe({
type: ObservabilityEventType.Message,
contents: "at start of acceptBankIntegratedWithdrawal",