diff --git a/lib/datasource/orb/index.js b/lib/datasource/orb/index.js index b183b3331d44030757fe4aa8081f88460425cd8d..c0a43fb67fb5a83e776a5e594aaf52503b597c62 100644 --- a/lib/datasource/orb/index.js +++ b/lib/datasource/orb/index.js @@ -53,17 +53,12 @@ async function getPkgReleases({ lookupName }) { await renovateCache.set(cacheNamespace, cacheKey, dep, cacheMinutes); return dep; } catch (err) /* istanbul ignore next */ { + logger.debug({ err }, 'CircleCI Orb lookup error'); if (err.statusCode === 404 || err.code === 'ENOTFOUND') { logger.info({ lookupName }, `CircleCI Orb lookup failure: not found`); - logger.debug({ - err, - }); return null; } - logger.warn( - { err, lookupName }, - 'CircleCI Orb lookup failure: Unknown error' - ); + logger.warn({ lookupName }, 'CircleCI Orb lookup failure: Unknown error'); return null; } }