diff --git a/lib/util/http/host-rules.ts b/lib/util/http/host-rules.ts index 5c5ee572e3849339fa002f4e06778220330df28b..7639b1376e5519403e072f60f1f60aacfc368dc9 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;