Skip to content

Commit 2b95529

Browse files
Add loggers to check feature toggles custom strategy issue
1 parent 9e640b3 commit 2b95529

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

UnleashClient/loader.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ def _create_strategies(provisioning: dict,
2727
strategy_mapping[strategy['name']](constraints=constraint_provisioning, parameters=strategy_provisioning)
2828
)
2929
except Exception as excep:
30-
LOGGER.warning("Failed to load strategy. This may be a problem with a custom strategy. Exception: %s",
31-
excep)
30+
LOGGER.warning("Failed to load strategy. This may be a problem with a custom strategy. "
31+
"Exception: {}, Provisioning : {}, Strategy Mapping: {}".format(excep,
32+
provisioning,
33+
strategy_mapping))
3234

3335
return feature_strategies
3436

0 commit comments

Comments
 (0)