diff options
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/dev-experiments.ts | 6 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/util/retries.ts | 3 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 6 |
4 files changed, 10 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/dev-experiments.ts b/packages/taler-wallet-core/src/dev-experiments.ts index e1de7dbf1..6c36d6f6c 100644 --- a/packages/taler-wallet-core/src/dev-experiments.ts +++ b/packages/taler-wallet-core/src/dev-experiments.ts @@ -129,7 +129,7 @@ export class DevExperimentHttpLib implements HttpRequestLibrary { url: string, opt?: HttpRequestOptions | undefined, ): Promise<HttpResponse> { - logger.info(`devexperiment httplib ${url}`); + logger.trace(`devexperiment httplib ${url}`); return this.underlyingLib.get(url, opt); } @@ -138,7 +138,7 @@ export class DevExperimentHttpLib implements HttpRequestLibrary { body: any, opt?: HttpRequestOptions | undefined, ): Promise<HttpResponse> { - logger.info(`devexperiment httplib ${url}`); + logger.trace(`devexperiment httplib ${url}`); return this.underlyingLib.postJson(url, body, opt); } @@ -146,7 +146,7 @@ export class DevExperimentHttpLib implements HttpRequestLibrary { url: string, opt?: HttpRequestOptions | undefined, ): Promise<HttpResponse> { - logger.info(`devexperiment httplib ${url}`); + logger.trace(`devexperiment httplib ${url}`); return this.underlyingLib.fetch(url, opt); } } diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index f7edfed91..667b97361 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -568,7 +568,7 @@ async function processPlanchetExchangeRequest( } catch (e) { const errDetail = getErrorDetailFromException(e); logger.trace("withdrawal request failed", e); - logger.trace(e); + logger.trace(String(e)); await ws.db .mktx((x) => [x.planchets]) .runReadWrite(async (tx) => { diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts index 851824866..fcb63ecd1 100644 --- a/packages/taler-wallet-core/src/util/retries.ts +++ b/packages/taler-wallet-core/src/util/retries.ts @@ -24,6 +24,7 @@ import { AbsoluteTime, Duration, + Logger, TalerErrorDetail, } from "@gnu-taler/taler-util"; import { @@ -44,6 +45,8 @@ import { InternalWalletState } from "../internal-wallet-state.js"; import { PendingTaskType } from "../pending-types.js"; import { GetReadWriteAccess } from "./query.js"; +const logger = new Logger("util/retries.ts"); + export enum OperationAttemptResultType { Finished = "finished", Pending = "pending", diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index bba502842..24c7f7b9e 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -948,9 +948,9 @@ async function dumpCoins(ws: InternalWalletState): Promise<CoinDumpJson> { ageCommitmentProof: c.ageCommitmentProof, spend_allocation: c.spendAllocation ? { - amount: c.spendAllocation.amount, - id: c.spendAllocation.id, - } + amount: c.spendAllocation.amount, + id: c.spendAllocation.id, + } : undefined, }); } |