mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +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 };
|
return { warnings, warningFiles };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +73,6 @@ export function getDepWarningsOnboardingPR(
|
||||||
if (!warnings.length) {
|
if (!warnings.length) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
logger.debug({ warnings, warningFiles }, 'Found package lookup warnings');
|
|
||||||
warningText = emojify(
|
warningText = emojify(
|
||||||
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
||||||
);
|
);
|
||||||
|
@ -90,7 +92,7 @@ export function getDepWarningsPR(
|
||||||
config: RenovateConfig,
|
config: RenovateConfig,
|
||||||
dependencyDashboard?: boolean
|
dependencyDashboard?: boolean
|
||||||
): string {
|
): string {
|
||||||
const { warnings, warningFiles } = getDepWarnings(packageFiles);
|
const { warnings } = getDepWarnings(packageFiles);
|
||||||
if (config.suppressNotifications?.includes('dependencyLookupWarnings')) {
|
if (config.suppressNotifications?.includes('dependencyLookupWarnings')) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
@ -98,7 +100,6 @@ export function getDepWarningsPR(
|
||||||
if (!warnings.length) {
|
if (!warnings.length) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
logger.debug({ warnings, warningFiles }, 'Found package lookup warnings');
|
|
||||||
warningText = emojify(
|
warningText = emojify(
|
||||||
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
||||||
);
|
);
|
||||||
|
@ -130,7 +131,6 @@ export function getDepWarningsDashboard(
|
||||||
.map((dep) => '`' + dep + '`')
|
.map((dep) => '`' + dep + '`')
|
||||||
.join(', ');
|
.join(', ');
|
||||||
|
|
||||||
logger.debug({ warnings, warningFiles }, 'Found package lookup warnings');
|
|
||||||
let warningText = emojify(
|
let warningText = emojify(
|
||||||
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
`\n---\n\n### :warning: Dependency Lookup Warnings :warning:\n\n`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue