From 9e640b32a7cea1a746c92d26bac0cec1edff1d99 Mon Sep 17 00:00:00 2001 From: haptikrajasashtikar Date: Thu, 17 Feb 2022 12:38:20 +0530 Subject: [PATCH 1/2] Update ReadMe to add a commit to test the FeatureToggles release pipeline --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 85ac655..2b59694 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ FeatureToggles.initialize( # To check if feature is enabled for domain FeatureToggles.is_enabled_for_domain(, ) -# Check if certainfeature is enabled for partner +# Check if certain feature is enabled for partner FeatureToggles.is_enabled_for_partner(, ) # Check if certain feature is enabled for business From 2b9552913e57f74c7a8b2e769d535fab508e75d9 Mon Sep 17 00:00:00 2001 From: haptikrajasashtikar Date: Fri, 6 May 2022 18:46:34 +0530 Subject: [PATCH 2/2] Add loggers to check feature toggles custom strategy issue --- UnleashClient/loader.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UnleashClient/loader.py b/UnleashClient/loader.py index f2ead8c..6f83019 100644 --- a/UnleashClient/loader.py +++ b/UnleashClient/loader.py @@ -27,8 +27,10 @@ def _create_strategies(provisioning: dict, strategy_mapping[strategy['name']](constraints=constraint_provisioning, parameters=strategy_provisioning) ) except Exception as excep: - LOGGER.warning("Failed to load strategy. This may be a problem with a custom strategy. Exception: %s", - excep) + LOGGER.warning("Failed to load strategy. This may be a problem with a custom strategy. " + "Exception: {}, Provisioning : {}, Strategy Mapping: {}".format(excep, + provisioning, + strategy_mapping)) return feature_strategies