diff options
Diffstat (limited to 'src/operations')
-rw-r--r-- | src/operations/exchanges.ts | 7 | ||||
-rw-r--r-- | src/operations/reserves.ts | 11 |
2 files changed, 6 insertions, 12 deletions
diff --git a/src/operations/exchanges.ts b/src/operations/exchanges.ts index ff2cd3da6..6b995b5e9 100644 --- a/src/operations/exchanges.ts +++ b/src/operations/exchanges.ts @@ -51,6 +51,9 @@ import { readSuccessResponseJsonOrThrow, readSuccessResponseTextOrThrow, } from "../util/http"; +import { Logger } from "../util/logging"; + +const logger = new Logger("exchanges.ts"); async function denominationRecordFromKeys( ws: InternalWalletState, @@ -197,7 +200,7 @@ async function updateExchangeWithKeys( // Handle recoup const recoupDenomList = exchangeKeysJson.recoup ?? []; const newlyRevokedCoinPubs: string[] = []; - console.log("recoup list from exchange", recoupDenomList); + logger.trace("recoup list from exchange", recoupDenomList); for (const recoupInfo of recoupDenomList) { const oldDenom = await tx.getIndexed( Stores.denominations.denomPubHashIndex, @@ -354,7 +357,7 @@ async function updateExchangeWithWireInfo( ); for (const a of wireInfo.accounts) { - console.log("validating exchange acct"); + logger.trace("validating exchange acct"); const isValid = await ws.cryptoApi.isValidWireAccount( a.payto_uri, a.master_sig, diff --git a/src/operations/reserves.ts b/src/operations/reserves.ts index e6b09316e..51499e448 100644 --- a/src/operations/reserves.ts +++ b/src/operations/reserves.ts @@ -440,11 +440,8 @@ async function incrementReserveRetry( if (!r.retryInfo) { return; } - console.log("updating retry info"); - console.log("before", r.retryInfo); r.retryInfo.retryCounter++; updateRetryInfoTimeout(r.retryInfo); - console.log("after", r.retryInfo); r.lastError = err; await tx.put(Stores.reserves, r); }); @@ -528,16 +525,10 @@ async function updateReserve( reserveInfo.history, ); - console.log( - "reconciled history:", - JSON.stringify(reconciled, undefined, 2), - ); - const summary = summarizeReserveHistory( reconciled.updatedLocalHistory, currency, ); - console.log("summary", summary); if ( reconciled.newAddedItems.length + reconciled.newMatchedItems.length != @@ -765,7 +756,7 @@ async function depleteReserve( ); if (newWithdrawalGroup) { - console.log("processing new withdraw group"); + logger.trace("processing new withdraw group"); ws.notify({ type: NotificationType.WithdrawGroupCreated, withdrawalGroupId: newWithdrawalGroup.withdrawalGroupId, |