Skip to content

Commit

Permalink
fix(lookup): better warn logs for unexpected downgrade (#29978)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jul 2, 2024
1 parent 7868301 commit 622c604
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/workers/repository/process/lookup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,15 @@ export async function lookupUpdates(
versioning.isGreaterThan(compareValue, update.newValue)
) {
logger.warn(
{ update, allVersions, filteredReleases },
{
packageName: config.packageName,
currentValue: config.currentValue,
compareValue,
currentVersion: config.currentVersion,
update,
allVersionsLength: allVersions.length,
filteredReleaseVersions: filteredReleases.map((r) => r.version),
},
'Unexpected downgrade detected: skipping',
);
} else {
Expand Down

0 comments on commit 622c604

Please sign in to comment.