mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(logs): warn when Package lookup failures occur (#23247)
This commit is contained in:
parent
0d6a888261
commit
62b7144ab9
1 changed files with 4 additions and 4 deletions
|
@ -55,6 +55,9 @@ function getDepWarnings(
|
|||
}
|
||||
}
|
||||
}
|
||||
if (warnings.length) {
|
||||
logger.warn({ warnings, files: warningFiles }, 'Package lookup failures');
|
||||
}
|
||||
return { warnings, warningFiles };
|
||||
}
|
||||
|
||||
|
@ -70,7 +73,6 @@ export function getDepWarningsOnboardingPR(
|
|||
if (!warnings.length) {
|
||||
return '';
|
||||
}
|
||||
logger.debug({ warnings, warningFiles }, 'Found package lookup warnings');
|
||||
warningText = emojify(
|
||||
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
||||
);
|
||||
|
@ -90,7 +92,7 @@ export function getDepWarningsPR(
|
|||
config: RenovateConfig,
|
||||
dependencyDashboard?: boolean
|
||||
): string {
|
||||
const { warnings, warningFiles } = getDepWarnings(packageFiles);
|
||||
const { warnings } = getDepWarnings(packageFiles);
|
||||
if (config.suppressNotifications?.includes('dependencyLookupWarnings')) {
|
||||
return '';
|
||||
}
|
||||
|
@ -98,7 +100,6 @@ export function getDepWarningsPR(
|
|||
if (!warnings.length) {
|
||||
return '';
|
||||
}
|
||||
logger.debug({ warnings, warningFiles }, 'Found package lookup warnings');
|
||||
warningText = emojify(
|
||||
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
||||
);
|
||||
|
@ -130,7 +131,6 @@ export function getDepWarningsDashboard(
|
|||
.map((dep) => '`' + dep + '`')
|
||||
.join(', ');
|
||||
|
||||
logger.debug({ warnings, warningFiles }, 'Found package lookup warnings');
|
||||
let warningText = emojify(
|
||||
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue