From 33d488b0d4be03ff93e085ea42e4e6e2edf9f1e9 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 12 Mar 2020 09:17:12 +0100 Subject: [PATCH] fix: pypi get logging --- lib/datasource/pypi/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/datasource/pypi/index.ts b/lib/datasource/pypi/index.ts index bab4dc7a98..b849b51087 100644 --- a/lib/datasource/pypi/index.ts +++ b/lib/datasource/pypi/index.ts @@ -173,8 +173,13 @@ export async function getPkgReleases({ hostUrl += hostUrl.endsWith('/') ? '' : '/'; let dep: ReleaseResult; if (hostUrl.endsWith('/simple/') || hostUrl.endsWith('/+simple/')) { + logger.debug( + { lookupName, hostUrl }, + 'Looking up pypi simple dependency' + ); dep = await getSimpleDependency(lookupName, hostUrl); } else { + logger.debug({ lookupName, hostUrl }, 'Looking up pypi api dependency'); dep = await getDependency(lookupName, hostUrl, compatibility); } if (dep !== null) { -- GitLab