logging
This commit is contained in:
parent
18f7406d46
commit
ed447ad534
@ -675,14 +675,11 @@ async function depleteReserve(
|
|||||||
|
|
||||||
const withdrawAmount = summary.unclaimedReserveAmount;
|
const withdrawAmount = summary.unclaimedReserveAmount;
|
||||||
|
|
||||||
logger.trace(`getting denom list`);
|
|
||||||
|
|
||||||
const denomsForWithdraw = await selectWithdrawalDenoms(
|
const denomsForWithdraw = await selectWithdrawalDenoms(
|
||||||
ws,
|
ws,
|
||||||
reserve.exchangeBaseUrl,
|
reserve.exchangeBaseUrl,
|
||||||
withdrawAmount,
|
withdrawAmount,
|
||||||
);
|
);
|
||||||
logger.trace(`got denom list`);
|
|
||||||
if (!denomsForWithdraw) {
|
if (!denomsForWithdraw) {
|
||||||
// Only complain about inability to withdraw if we
|
// Only complain about inability to withdraw if we
|
||||||
// didn't withdraw before.
|
// didn't withdraw before.
|
||||||
@ -700,6 +697,12 @@ async function depleteReserve(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.trace(
|
||||||
|
`Selected coins total cost ${Amounts.stringify(
|
||||||
|
denomsForWithdraw.totalWithdrawCost,
|
||||||
|
)} for withdrawal of ${Amounts.stringify(withdrawAmount)}`,
|
||||||
|
);
|
||||||
|
|
||||||
logger.trace("selected denominations");
|
logger.trace("selected denominations");
|
||||||
|
|
||||||
const newWithdrawalGroup = await ws.db.runWithWriteTransaction(
|
const newWithdrawalGroup = await ws.db.runWithWriteTransaction(
|
||||||
@ -735,6 +738,12 @@ async function depleteReserve(
|
|||||||
logger.error(
|
logger.error(
|
||||||
"aborting withdrawal session, likely concurrent withdrawal happened",
|
"aborting withdrawal session, likely concurrent withdrawal happened",
|
||||||
);
|
);
|
||||||
|
logger.error(
|
||||||
|
`unclaimed reserve amount is ${newSummary.unclaimedReserveAmount}`,
|
||||||
|
);
|
||||||
|
logger.error(
|
||||||
|
`withdrawal cost is ${denomsForWithdraw.totalWithdrawCost}`,
|
||||||
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (let i = 0; i < denomsForWithdraw.selectedDenoms.length; i++) {
|
for (let i = 0; i < denomsForWithdraw.selectedDenoms.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user