Skip to content
Snippets Groups Projects
Commit f239df80 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

logs: stop logging scoped headers

parent 63f062b1
No related branches found
No related tags found
No related merge requests found
......@@ -187,18 +187,6 @@ async function getDependency(name, retries = 5) {
headers,
});
const res = raw.body;
// istanbul ignore if
if (regUrl === 'https://registry.npmjs.org/' && name.startsWith('@')) {
// npmjs is having problems with scoped package consistency so we are debug logging headers until the problem goes away
logger.debug(
{
package: name,
latest: res['dist-tags'].latest,
headers: raw.headers,
},
'npmjs res.headers for scoped package'
);
}
if (!(res.name && res.name.toLowerCase() === name.toLowerCase())) {
logger.warn(
{ lookupName: name, returnedName: res.name, regUrl },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment