Skip to content

Commit

Permalink
chore(logs): lower lookup logging (#21027)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Mar 18, 2023
1 parent 42b0e10 commit cf8619a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/modules/datasource/npm/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export async function getDependency(
}
const raw = await http.getJson<NpmResponse>(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,
Expand Down
6 changes: 3 additions & 3 deletions lib/workers/repository/process/lookup/filter-checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
);
Expand All @@ -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`
);
Expand All @@ -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'
);
Expand Down
4 changes: 2 additions & 2 deletions lib/workers/repository/updates/branch-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit cf8619a

Please sign in to comment.