[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/03: logging
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/03: logging |
Date: |
Thu, 16 Jul 2020 13:52:16 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit ed447ad534d52ef0be569ab0cbbea1198f45420b
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Thu Jul 16 17:21:43 2020 +0530
logging
---
src/operations/reserves.ts | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/operations/reserves.ts b/src/operations/reserves.ts
index ff20ce9b..96583170 100644
--- a/src/operations/reserves.ts
+++ b/src/operations/reserves.ts
@@ -675,14 +675,11 @@ async function depleteReserve(
const withdrawAmount = summary.unclaimedReserveAmount;
- logger.trace(`getting denom list`);
-
const denomsForWithdraw = await selectWithdrawalDenoms(
ws,
reserve.exchangeBaseUrl,
withdrawAmount,
);
- logger.trace(`got denom list`);
if (!denomsForWithdraw) {
// Only complain about inability to withdraw if we
// didn't withdraw before.
@@ -700,6 +697,12 @@ async function depleteReserve(
return;
}
+ logger.trace(
+ `Selected coins total cost ${Amounts.stringify(
+ denomsForWithdraw.totalWithdrawCost,
+ )} for withdrawal of ${Amounts.stringify(withdrawAmount)}`,
+ );
+
logger.trace("selected denominations");
const newWithdrawalGroup = await ws.db.runWithWriteTransaction(
@@ -735,6 +738,12 @@ async function depleteReserve(
logger.error(
"aborting withdrawal session, likely concurrent withdrawal happened",
);
+ logger.error(
+ `unclaimed reserve amount is ${newSummary.unclaimedReserveAmount}`,
+ );
+ logger.error(
+ `withdrawal cost is ${denomsForWithdraw.totalWithdrawCost}`,
+ );
return false;
}
for (let i = 0; i < denomsForWithdraw.selectedDenoms.length; i++) {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.