From cf8619aaacc68fbd2084b67a104b08d8284fc475 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Sat, 18 Mar 2023 19:44:56 +0100 Subject: [PATCH] chore(logs): lower lookup logging (#21027) --- lib/modules/datasource/npm/get.ts | 2 +- lib/workers/repository/process/lookup/filter-checks.ts | 6 +++--- lib/workers/repository/updates/branch-name.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/modules/datasource/npm/get.ts b/lib/modules/datasource/npm/get.ts index d883f777f9b8ce..dedf43762c76bb 100644 --- a/lib/modules/datasource/npm/get.ts +++ b/lib/modules/datasource/npm/get.ts @@ -104,7 +104,7 @@ export async function getDependency( } const raw = await http.getJson(packageUrl, options); if (cachedResult?.cacheData && raw.statusCode === 304) { - logger.debug({ packageName }, 'Cached npm result is revalidated'); + logger.trace(`Cached npm result for ${packageName} is revalidated`); cachedResult.cacheData.softExpireAt = softExpireAt; await packageCache.set( cacheNamespace, diff --git a/lib/workers/repository/process/lookup/filter-checks.ts b/lib/workers/repository/process/lookup/filter-checks.ts index 93044425c83425..a740bc4202b9ff 100644 --- a/lib/workers/repository/process/lookup/filter-checks.ts +++ b/lib/workers/repository/process/lookup/filter-checks.ts @@ -62,7 +62,7 @@ export async function filterInternalChecks( if (is.integer(stabilityDays) && releaseTimestamp) { if (getElapsedDays(releaseTimestamp) < stabilityDays) { // Skip it if it doesn't pass checks - logger.debug( + logger.trace( { depName, check: 'stabilityDays' }, `Release ${candidateRelease.version} is pending status checks` ); @@ -82,7 +82,7 @@ export async function filterInternalChecks( ); // TODO #7154 if (!satisfiesConfidenceLevel(confidenceLevel, minimumConfidence!)) { - logger.debug( + logger.trace( { depName, check: 'minimumConfidence' }, `Release ${candidateRelease.version} is pending status checks` ); @@ -97,7 +97,7 @@ export async function filterInternalChecks( if (!release) { if (pendingReleases.length) { // If all releases were pending then just take the highest - logger.debug( + logger.trace( { depName, bucket }, 'All releases are pending - using latest' ); diff --git a/lib/workers/repository/updates/branch-name.ts b/lib/workers/repository/updates/branch-name.ts index b88ec208b3d8e5..9805478942316e 100644 --- a/lib/workers/repository/updates/branch-name.ts +++ b/lib/workers/repository/updates/branch-name.ts @@ -48,9 +48,9 @@ function cleanBranchName( export function generateBranchName(update: RenovateConfig): void { // Check whether to use a group name if (update.groupName) { - logger.debug('Using group branchName template'); + logger.trace('Using group branchName template'); // TODO: types (#7154) - logger.debug( + logger.trace( `Dependency ${update.depName!} is part of group ${update.groupName}` ); update.groupSlug = slugify(update.groupSlug ?? update.groupName, {