From d9fe499bdd358c60968faa1d7e8e7d8f7d0fe53d Mon Sep 17 00:00:00 2001 From: Heitor Lessa Date: Thu, 5 Aug 2021 13:52:29 +0200 Subject: [PATCH] refactor(feature-flags): add debug for all features evaluation" (#590) * chore: add missing debugging log for all feats * revert: autolabeler for release-drafter PR title --- .github/release-drafter.yml | 15 --------------- .../utilities/feature_flags/feature_flags.py | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index c5298fdecff..44ad5a61779 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -39,18 +39,3 @@ template: | ## This release was made possible by the following contributors: $CONTRIBUTORS - -autolabeler: - - label: 'documentation' - title: - - '/docs.+/i' - - label: 'bug' - title: - - '/fix/i' - - label: 'feature' - title: - - '/feat.+/i' - - '/refactor.+/i' - - label: 'internal' - title: - - '/chore.+/i' diff --git a/aws_lambda_powertools/utilities/feature_flags/feature_flags.py b/aws_lambda_powertools/utilities/feature_flags/feature_flags.py index 3d913de98d4..4cf5de6f3ed 100644 --- a/aws_lambda_powertools/utilities/feature_flags/feature_flags.py +++ b/aws_lambda_powertools/utilities/feature_flags/feature_flags.py @@ -237,6 +237,7 @@ def get_enabled_features(self, *, context: Optional[Dict[str, Any]] = None) -> L logger.debug(f"Failed to fetch feature flags from store, returning empty list, reason={err}") return features_enabled + logger.debug("Evaluating all features") for name, feature in features.items(): rules = feature.get(schema.RULES_KEY, {}) feature_default_value = feature.get(schema.FEATURE_DEFAULT_VAL_KEY)