From 30f461f7d1b7fa4600c4e2a1c3c3b0a653e08ce7 Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Wed, 28 Oct 2020 13:19:33 +0100 Subject: [PATCH] fix: improve logging (#7587) --- lib/util/http/host-rules.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util/http/host-rules.ts b/lib/util/http/host-rules.ts index 5c5ee572e3..7639b1376e 100644 --- a/lib/util/http/host-rules.ts +++ b/lib/util/http/host-rules.ts @@ -14,13 +14,13 @@ export function applyHostRules(url: string, inOptions: GotOptions): GotOptions { }) || /* istanbul ignore next: can only happen in tests */ {}; const { username, password, token, enabled } = foundRules; if (options.headers?.authorization || options.password || options.token) { - logger.trace(`Authorization already set for host: ${url}`); + logger.trace({ url }, `Authorization already set`); } else if (password) { - logger.trace(`Applying Basic authentication for host ${url}`); + logger.trace({ url }, `Applying Basic authentication`); options.username = username; options.password = password; } else if (token) { - logger.trace(`Applying Bearer authentication for host ${url}`); + logger.trace({ url }, `Applying Bearer authentication`); options.token = token; } else if (enabled === false) { options.enabled = false; -- GitLab