Skip to content
Snippets Groups Projects
Unverified Commit cf8619aa authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

chore(logs): lower lookup logging (#21027)

parent 42b0e102
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ export async function getDependency( ...@@ -104,7 +104,7 @@ export async function getDependency(
} }
const raw = await http.getJson<NpmResponse>(packageUrl, options); const raw = await http.getJson<NpmResponse>(packageUrl, options);
if (cachedResult?.cacheData && raw.statusCode === 304) { 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; cachedResult.cacheData.softExpireAt = softExpireAt;
await packageCache.set( await packageCache.set(
cacheNamespace, cacheNamespace,
......
...@@ -62,7 +62,7 @@ export async function filterInternalChecks( ...@@ -62,7 +62,7 @@ export async function filterInternalChecks(
if (is.integer(stabilityDays) && releaseTimestamp) { if (is.integer(stabilityDays) && releaseTimestamp) {
if (getElapsedDays(releaseTimestamp) < stabilityDays) { if (getElapsedDays(releaseTimestamp) < stabilityDays) {
// Skip it if it doesn't pass checks // Skip it if it doesn't pass checks
logger.debug( logger.trace(
{ depName, check: 'stabilityDays' }, { depName, check: 'stabilityDays' },
`Release ${candidateRelease.version} is pending status checks` `Release ${candidateRelease.version} is pending status checks`
); );
...@@ -82,7 +82,7 @@ export async function filterInternalChecks( ...@@ -82,7 +82,7 @@ export async function filterInternalChecks(
); );
// TODO #7154 // TODO #7154
if (!satisfiesConfidenceLevel(confidenceLevel, minimumConfidence!)) { if (!satisfiesConfidenceLevel(confidenceLevel, minimumConfidence!)) {
logger.debug( logger.trace(
{ depName, check: 'minimumConfidence' }, { depName, check: 'minimumConfidence' },
`Release ${candidateRelease.version} is pending status checks` `Release ${candidateRelease.version} is pending status checks`
); );
...@@ -97,7 +97,7 @@ export async function filterInternalChecks( ...@@ -97,7 +97,7 @@ export async function filterInternalChecks(
if (!release) { if (!release) {
if (pendingReleases.length) { if (pendingReleases.length) {
// If all releases were pending then just take the highest // If all releases were pending then just take the highest
logger.debug( logger.trace(
{ depName, bucket }, { depName, bucket },
'All releases are pending - using latest' 'All releases are pending - using latest'
); );
......
...@@ -48,9 +48,9 @@ function cleanBranchName( ...@@ -48,9 +48,9 @@ function cleanBranchName(
export function generateBranchName(update: RenovateConfig): void { export function generateBranchName(update: RenovateConfig): void {
// Check whether to use a group name // Check whether to use a group name
if (update.groupName) { if (update.groupName) {
logger.debug('Using group branchName template'); logger.trace('Using group branchName template');
// TODO: types (#7154) // TODO: types (#7154)
logger.debug( logger.trace(
`Dependency ${update.depName!} is part of group ${update.groupName}` `Dependency ${update.depName!} is part of group ${update.groupName}`
); );
update.groupSlug = slugify(update.groupSlug ?? update.groupName, { update.groupSlug = slugify(update.groupSlug ?? update.groupName, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment