diff --git a/lib/platform/github/gh-got-wrapper.js b/lib/platform/github/gh-got-wrapper.js index 3d72ca8506..72f7fd8217 100644 --- a/lib/platform/github/gh-got-wrapper.js +++ b/lib/platform/github/gh-got-wrapper.js @@ -11,13 +11,11 @@ function sleep(ms) { async function get(path, opts, retries = 5) { const method = opts && opts.method ? opts.method : 'get'; + logger.debug({ retries }, `${method.toUpperCase()} ${path}`); if (method === 'get' && cache[path]) { logger.debug({ path }, 'Returning cached result'); return cache[path]; } - if (retries === 5) { - logger.debug(`${method.toUpperCase()} ${path}`); - } try { if (appMode) { /* eslint-disable no-param-reassign */