some logging INFO -> TRACE

This commit is contained in:
Marc Stibane 2023-07-12 18:06:06 +02:00
parent d759f08225
commit 8c2fed4e1c
No known key found for this signature in database
GPG Key ID: 278112A45DD14975
2 changed files with 13 additions and 13 deletions

View File

@ -627,7 +627,7 @@ export async function updateExchangeFromUrlHandler(
AbsoluteTime.fromPreciseTimestamp(exchange.nextUpdate), AbsoluteTime.fromPreciseTimestamp(exchange.nextUpdate),
) )
) { ) {
logger.info("using existing exchange info"); logger.trace("using existing exchange info");
if (options.checkMasterPub) { if (options.checkMasterPub) {
if (exchangeDetails.masterPublicKey !== options.checkMasterPub) { if (exchangeDetails.masterPublicKey !== options.checkMasterPub) {
@ -638,7 +638,7 @@ export async function updateExchangeFromUrlHandler(
return TaskRunResult.finished(); return TaskRunResult.finished();
} }
logger.info("updating exchange /keys info"); logger.trace("updating exchange /keys info");
const timeout = getExchangeRequestTimeout(); 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( const wireInfoDownload = await downloadExchangeWireInfo(
exchangeBaseUrl, exchangeBaseUrl,
ws.http, ws.http,

View File

@ -309,7 +309,7 @@ async function refreshCreateSession(
}; };
await tx.refreshGroups.put(rg); await tx.refreshGroups.put(rg);
}); });
logger.info( logger.trace(
`created refresh session for coin #${coinIndex} in ${refreshGroupId}`, `created refresh session for coin #${coinIndex} in ${refreshGroupId}`,
); );
} }
@ -577,7 +577,7 @@ async function refreshReveal(
refreshGroupId: string, refreshGroupId: string,
coinIndex: number, coinIndex: number,
): Promise<void> { ): Promise<void> {
logger.info( logger.trace(
`doing refresh reveal for ${refreshGroupId} (old coin ${coinIndex})`, `doing refresh reveal for ${refreshGroupId} (old coin ${coinIndex})`,
); );
const d = await ws.db const d = await ws.db
@ -786,7 +786,7 @@ export async function processRefreshGroup(
refreshGroupId: string, refreshGroupId: string,
options: Record<string, never> = {}, options: Record<string, never> = {},
): Promise<TaskRunResult> { ): Promise<TaskRunResult> {
logger.info(`processing refresh group ${refreshGroupId}`); logger.trace(`processing refresh group ${refreshGroupId}`);
const refreshGroup = await ws.db const refreshGroup = await ws.db
.mktx((x) => [x.refreshGroups]) .mktx((x) => [x.refreshGroups])
@ -855,7 +855,7 @@ async function processRefreshSession(
refreshGroupId: string, refreshGroupId: string,
coinIndex: number, coinIndex: number,
): Promise<void> { ): Promise<void> {
logger.info( logger.trace(
`processing refresh session for coin ${coinIndex} of group ${refreshGroupId}`, `processing refresh session for coin ${coinIndex} of group ${refreshGroupId}`,
); );
let refreshGroup = await ws.db let refreshGroup = await ws.db
@ -1078,7 +1078,7 @@ export async function createRefreshGroup(
await tx.refreshGroups.put(refreshGroup); await tx.refreshGroups.put(refreshGroup);
logger.info(`created refresh group ${refreshGroupId}`); logger.trace(`created refresh group ${refreshGroupId}`);
return { return {
refreshGroupId, refreshGroupId,
@ -1119,7 +1119,7 @@ export async function autoRefresh(
ws: InternalWalletState, ws: InternalWalletState,
exchangeBaseUrl: string, exchangeBaseUrl: string,
): Promise<TaskRunResult> { ): 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 // We must make sure that the exchange is up-to-date so that
// can refresh into new denominations. // can refresh into new denominations.
@ -1186,13 +1186,13 @@ export async function autoRefresh(
refreshCoins, refreshCoins,
RefreshReason.Scheduled, RefreshReason.Scheduled,
); );
logger.info( logger.trace(
`created refresh group for auto-refresh (${res.refreshGroupId})`, `created refresh group for auto-refresh (${res.refreshGroupId})`,
); );
} }
logger.trace( // logger.trace(
`current wallet time: ${AbsoluteTime.toIsoString(AbsoluteTime.now())}`, // `current wallet time: ${AbsoluteTime.toIsoString(AbsoluteTime.now())}`,
); // );
logger.trace( logger.trace(
`next refresh check at ${AbsoluteTime.toIsoString(minCheckThreshold)}`, `next refresh check at ${AbsoluteTime.toIsoString(minCheckThreshold)}`,
); );