From 3ec142130139d842a3f4599545a87b5658f6eaa1 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 10 Apr 2019 17:44:42 +0200 Subject: [PATCH] refactor: log packagist host rules results --- lib/manager/composer/artifacts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/manager/composer/artifacts.js b/lib/manager/composer/artifacts.js index 4a34a05d95..7fad82bdc2 100644 --- a/lib/manager/composer/artifacts.js +++ b/lib/manager/composer/artifacts.js @@ -69,9 +69,11 @@ async function getArtifacts( platform: 'packagist', host, }); + // istanbul ignore else if (hostRule) { // istanbul ignore else if (hostRule.username && hostRule.password) { + logger.debug('Setting packagist auth for host ' + host); authJson = authJson || {}; authJson['http-basic'] = authJson['http-basic'] || {}; authJson['http-basic'][host] = { @@ -81,6 +83,8 @@ async function getArtifacts( } else { logger.info('Warning: unknown composer host rule type'); } + } else { + logger.debug('No packagist auth found for host ' + host); } } } -- GitLab