diff options
author | Marc Stibane <marc@taler.net> | 2023-07-12 18:06:06 +0200 |
---|---|---|
committer | Marc Stibane <marc@taler.net> | 2023-07-12 18:06:06 +0200 |
commit | 8c2fed4e1c9e09df2521898220f23c5f6b804cd2 (patch) | |
tree | 24549cbc03cf9adfaab8b43a0e662e12f9b6bef5 /packages | |
parent | d759f08225a85858b0de7d98b5c50d410360ee8d (diff) | |
download | wallet-core-8c2fed4e1c9e09df2521898220f23c5f6b804cd2.tar.xz |
some logging INFO -> TRACE
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/operations/exchanges.ts | 6 | ||||
-rw-r--r-- | packages/taler-wallet-core/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<void> { - 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<string, never> = {}, ): Promise<TaskRunResult> { - 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<void> { - 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<TaskRunResult> { - 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)}`, ); |