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

logs: warn for npmjs retry

parent d06a8ef8
No related branches found
No related tags found
No related merge requests found
...@@ -236,7 +236,7 @@ export async function getDependency( ...@@ -236,7 +236,7 @@ export async function getDependency(
(err.name === 'ParseError' || err.code === 'ECONNRESET') && (err.name === 'ParseError' || err.code === 'ECONNRESET') &&
retries > 0 retries > 0
) { ) {
logger.debug({ pkgUrl, errName: err.name }, 'Retrying npm error'); logger.warn({ pkgUrl, errName: err.name }, 'Retrying npm error');
await delay(5000); await delay(5000);
return getDependency(name, retries - 1); return getDependency(name, retries - 1);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment