From 7b3e14c5cc741457b2ab1f98a7bd9bb90bd01d00 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Fri, 17 Sep 2021 11:19:27 +0200
Subject: [PATCH] logs: global env hostRules

---
 lib/workers/global/config/parse/env.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/workers/global/config/parse/env.ts b/lib/workers/global/config/parse/env.ts
index 0c9361cbb3..10dc8abcfb 100644
--- a/lib/workers/global/config/parse/env.ts
+++ b/lib/workers/global/config/parse/env.ts
@@ -80,6 +80,7 @@ export function getConfig(env: NodeJS.ProcessEnv): AllConfig {
   });
 
   if (env.GITHUB_COM_TOKEN) {
+    logger.debug(`Converting GITHUB_COM_TOKEN into a global host rule`);
     config.hostRules.push({
       hostType: PLATFORM_TYPE_GITHUB,
       matchHost: 'github.com',
@@ -119,6 +120,7 @@ export function getConfig(env: NodeJS.ProcessEnv): AllConfig {
         const existingRule = hostRules.find(
           (hr) => hr.hostType === hostType && hr.matchHost === matchHost
         );
+        logger.debug(`Converting ${envName} into a global host rule`);
         if (existingRule) {
           // Add current field to existing rule
           existingRule[suffix] = env[envName];
-- 
GitLab