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

fix: intensify lookup debugging

parent 5167c634
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ async function fetchDepUpdates(
currentValue,
updates: dep.updates,
});
logger.debug({ packageFile, depName }, 'fetchDepUpdates finished');
}
/* eslint-enable no-param-reassign */
}
......@@ -84,11 +85,17 @@ async function fetchManagerPackagerFileUpdates(
managerConfig: ManagerConfig,
pFile: PackageFile
): Promise<void> {
const { packageFile } = pFile;
const packageFileConfig = mergeChildConfig(managerConfig, pFile);
const queue = pFile.deps.map(dep => (): Promise<void> =>
fetchDepUpdates(packageFileConfig, dep)
);
logger.debug(
{ packageFile, queueLength: queue.length },
'fetchManagerPackagerFileUpdates starting'
);
await pAll(queue, { concurrency: 5 });
logger.debug({ packageFile }, 'fetchManagerPackagerFileUpdates finished');
}
async function fetchManagerUpdates(
......@@ -100,6 +107,10 @@ async function fetchManagerUpdates(
const queue = packageFiles[manager].map(pFile => (): Promise<void> =>
fetchManagerPackagerFileUpdates(config, managerConfig, pFile)
);
logger.debug(
{ manager, queueLength: queue.length },
'fetchManagerUpdates starting'
);
await pAll(queue, { concurrency: 5 });
logger.debug({ manager }, 'fetchManagerUpdates finished');
}
......
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