From 420fe33409a63d81ef8d2ecfd72e8e4846e0ac01 Mon Sep 17 00:00:00 2001 From: "Fotis Koutoulakis (@NlightNFotis)" Date: Thu, 24 Oct 2024 14:40:12 +0100 Subject: [PATCH] debug: add more logging to see what feature flags were retrievable --- src/feature-flags.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/feature-flags.ts b/src/feature-flags.ts index d5de93196..f7a8b0c8c 100644 --- a/src/feature-flags.ts +++ b/src/feature-flags.ts @@ -522,6 +522,7 @@ class GitHubFeatureFlags { this.logger.debug(` ${feature}: ${value}`); } this.hasAccessedRemoteFeatureFlags = true; + this.logger.info(`[DEBUG] Got remote flags: ${JSON.stringify(remoteFlags)}`); return remoteFlags; } catch (e) { if (util.isHTTPError(e) && e.status === 403) { @@ -531,6 +532,7 @@ class GitHubFeatureFlags { "This could be because the Action is running on a pull request from a fork. If not, " + `please ensure the Action has the 'security-events: write' permission. Details: ${e.message}`, ); + this.logger.info(`[DEBUG] Got HTTP error while retrieving remote flags`); this.hasAccessedRemoteFeatureFlags = false; return {}; } else {