diff options
author | Florian Dold <florian@dold.me> | 2022-10-07 12:43:17 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-07 12:47:31 +0200 |
commit | 1256c8704b11faceb21629cd50813ef2b7b9015b (patch) | |
tree | b0b7aa59bcfb8c133f563d2429aceb73f9d9e4ed | |
parent | 957f9a5efb26194a7911cdaf722502ba09e5bd58 (diff) |
-logging
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/exchanges.ts | 1 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 9 |
3 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index b55231b79..7ff369a5e 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -1412,7 +1412,7 @@ testCli } else if (args.cryptoworker.impl === "none") { cryptoApi = nativeCrypto; } else { - throw Error("invalid impl"); + throw Error(`invalid crypto worker type ${args.cryptoworker.impl}`); } const input = "foo"; diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index 60a4e91dd..1dd8660b5 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -505,7 +505,6 @@ export async function updateExchangeFromUrlHandler( > { const forceNow = options.forceNow ?? false; logger.info(`updating exchange info for ${baseUrl}, forced: ${forceNow}`); - console.trace("here"); const now = AbsoluteTime.now(); baseUrl = canonicalizeBaseUrl(baseUrl); diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 61525e476..484507d6b 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -589,9 +589,10 @@ async function fillDefaults(ws: InternalWalletState): Promise<void> { const appliedRec = await tx.config.get("currencyDefaultsApplied"); let alreadyApplied = appliedRec ? !!appliedRec.value : false; if (alreadyApplied) { - logger.info("defaults already applied"); + logger.trace("defaults already applied"); return; } + logger.info("importing default exchanges and auditors"); for (const c of builtinAuditors) { await tx.auditorTrust.put(c); } @@ -1120,12 +1121,12 @@ async function dispatchRequestInternal( // definitions we already have? switch (operation) { case "initWallet": { - logger.info("initializing wallet"); + logger.trace("initializing wallet"); ws.initCalled = true; if (typeof payload === "object" && (payload as any).skipDefaults) { - logger.info("skipping defaults"); + logger.trace("skipping defaults"); } else { - logger.info("filling defaults"); + logger.trace("filling defaults"); await fillDefaults(ws); } return {}; |