diff --git a/lib/datasource/npm/get.ts b/lib/datasource/npm/get.ts index cc4221890c8c0499c6ec49f409239182f0cf22f1..0bdafbf84a4186c53b28b7bd71923f8a86f81f66 100644 --- a/lib/datasource/npm/get.ts +++ b/lib/datasource/npm/get.ts @@ -223,7 +223,16 @@ export async function getDependency( return null; } if (regUrl.startsWith('https://registry.npmjs.org')) { - logger.warn({ err, regUrl, depName: name }, 'npm registry failure'); + logger.warn( + { + err, + errorCodes: err.gotOptions?.retry?.errorCodes, + statusCodes: err.gotOptions?.retry?.statusCodes, + regUrl, + depName: name, + }, + 'npm registry failure' + ); throw new Error(DATASOURCE_FAILURE); } // istanbul ignore next