debug: add more logging to see what feature flags were retrievable

This commit is contained in:
Fotis Koutoulakis (@NlightNFotis)
2024-10-24 14:40:12 +01:00
parent e93bd1c127
commit 420fe33409

View File

@@ -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 {