From 8c2fed4e1c9e09df2521898220f23c5f6b804cd2 Mon Sep 17 00:00:00 2001 From: Marc Stibane Date: Wed, 12 Jul 2023 18:06:06 +0200 Subject: [PATCH] some logging INFO -> TRACE --- .../src/operations/exchanges.ts | 6 +++--- .../src/operations/refresh.ts | 20 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index 5d120ccbd..8bf70fa27 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -627,7 +627,7 @@ export async function updateExchangeFromUrlHandler( AbsoluteTime.fromPreciseTimestamp(exchange.nextUpdate), ) ) { - logger.info("using existing exchange info"); + logger.trace("using existing exchange info"); if (options.checkMasterPub) { if (exchangeDetails.masterPublicKey !== options.checkMasterPub) { @@ -638,7 +638,7 @@ export async function updateExchangeFromUrlHandler( return TaskRunResult.finished(); } - logger.info("updating exchange /keys info"); + logger.trace("updating exchange /keys info"); const timeout = getExchangeRequestTimeout(); @@ -654,7 +654,7 @@ export async function updateExchangeFromUrlHandler( } } - logger.info("updating exchange /wire info"); + logger.trace("updating exchange /wire info"); const wireInfoDownload = await downloadExchangeWireInfo( exchangeBaseUrl, ws.http, diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 6eb221c1c..72d1a2725 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -309,7 +309,7 @@ async function refreshCreateSession( }; await tx.refreshGroups.put(rg); }); - logger.info( + logger.trace( `created refresh session for coin #${coinIndex} in ${refreshGroupId}`, ); } @@ -577,7 +577,7 @@ async function refreshReveal( refreshGroupId: string, coinIndex: number, ): Promise { - logger.info( + logger.trace( `doing refresh reveal for ${refreshGroupId} (old coin ${coinIndex})`, ); const d = await ws.db @@ -786,7 +786,7 @@ export async function processRefreshGroup( refreshGroupId: string, options: Record = {}, ): Promise { - logger.info(`processing refresh group ${refreshGroupId}`); + logger.trace(`processing refresh group ${refreshGroupId}`); const refreshGroup = await ws.db .mktx((x) => [x.refreshGroups]) @@ -855,7 +855,7 @@ async function processRefreshSession( refreshGroupId: string, coinIndex: number, ): Promise { - logger.info( + logger.trace( `processing refresh session for coin ${coinIndex} of group ${refreshGroupId}`, ); let refreshGroup = await ws.db @@ -1078,7 +1078,7 @@ export async function createRefreshGroup( await tx.refreshGroups.put(refreshGroup); - logger.info(`created refresh group ${refreshGroupId}`); + logger.trace(`created refresh group ${refreshGroupId}`); return { refreshGroupId, @@ -1119,7 +1119,7 @@ export async function autoRefresh( ws: InternalWalletState, exchangeBaseUrl: string, ): Promise { - logger.info(`doing auto-refresh check for '${exchangeBaseUrl}'`); + logger.trace(`doing auto-refresh check for '${exchangeBaseUrl}'`); // We must make sure that the exchange is up-to-date so that // can refresh into new denominations. @@ -1186,13 +1186,13 @@ export async function autoRefresh( refreshCoins, RefreshReason.Scheduled, ); - logger.info( + logger.trace( `created refresh group for auto-refresh (${res.refreshGroupId})`, ); } - logger.trace( - `current wallet time: ${AbsoluteTime.toIsoString(AbsoluteTime.now())}`, - ); +// logger.trace( +// `current wallet time: ${AbsoluteTime.toIsoString(AbsoluteTime.now())}`, +// ); logger.trace( `next refresh check at ${AbsoluteTime.toIsoString(minCheckThreshold)}`, );