From bc8403aedb13a1984293244454086e29039c92d6 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sat, 14 Mar 2020 06:12:07 +0100 Subject: [PATCH] logs: lower debugging --- lib/datasource/pypi/index.ts | 14 +++++++------- lib/workers/repository/process/fetch.ts | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/datasource/pypi/index.ts b/lib/datasource/pypi/index.ts index cd2ba53c64..dd9c37335a 100644 --- a/lib/datasource/pypi/index.ts +++ b/lib/datasource/pypi/index.ts @@ -38,17 +38,17 @@ async function getDependency( try { const lookupUrl = url.resolve(hostUrl, `${packageName}/json`); const dependency: ReleaseResult = { releases: null }; - logger.debug({ lookupUrl }, 'Pypi api got lookup'); + logger.trace({ lookupUrl }, 'Pypi api got lookup'); const rep = await got(url.parse(lookupUrl), { json: true, hostType: id, }); const dep = rep && rep.body; if (!dep) { - logger.debug({ dependency: packageName }, 'pip package not found'); + logger.trace({ dependency: packageName }, 'pip package not found'); return null; } - logger.debug({ lookupUrl }, 'Got pypi api result'); + logger.trace({ lookupUrl }, 'Got pypi api result'); if ( !(dep.info && normalizeName(dep.info.name) === normalizeName(packageName)) ) { @@ -128,7 +128,7 @@ async function getSimpleDependency( }); const dep = response && response.body; if (!dep) { - logger.debug({ dependency: packageName }, 'pip package not found'); + logger.trace({ dependency: packageName }, 'pip package not found'); return null; } const root: HTMLElement = parse(dep.replace(/<\/?pre>/, '')) as any; @@ -176,17 +176,17 @@ export async function getPkgReleases({ let hostUrl = hostUrls[index]; hostUrl += hostUrl.endsWith('/') ? '' : '/'; if (hostUrl.endsWith('/simple/') || hostUrl.endsWith('/+simple/')) { - logger.debug( + logger.trace( { lookupName, hostUrl }, 'Looking up pypi simple dependency' ); dep = await getSimpleDependency(lookupName, hostUrl); } else { - logger.debug({ lookupName, hostUrl }, 'Looking up pypi api dependency'); + logger.trace({ lookupName, hostUrl }, 'Looking up pypi api dependency'); dep = await getDependency(lookupName, hostUrl, compatibility); } if (dep !== null) { - logger.debug({ lookupName, hostUrl }, 'Found pypi result'); + logger.trace({ lookupName, hostUrl }, 'Found pypi result'); } } if (dep) return dep; diff --git a/lib/workers/repository/process/fetch.ts b/lib/workers/repository/process/fetch.ts index 5942c97975..5fb92864d2 100644 --- a/lib/workers/repository/process/fetch.ts +++ b/lib/workers/repository/process/fetch.ts @@ -129,12 +129,12 @@ async function fetchManagerUpdates( const queue = packageFiles[manager].map(pFile => (): Promise<void> => fetchManagerPackagerFileUpdates(config, managerConfig, pFile) ); - logger.debug( + logger.trace( { manager, queueLength: queue.length }, 'fetchManagerUpdates starting' ); await pAll(queue, { concurrency: 5 }); - logger.debug({ manager }, 'fetchManagerUpdates finished'); + logger.trace({ manager }, 'fetchManagerUpdates finished'); } export async function fetchUpdates( -- GitLab