Skip to content

Commit

Permalink
Add loggers to check feature toggles custom strategy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
haptikrajasashtikar committed May 6, 2022
1 parent 9e640b3 commit 2b95529
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions UnleashClient/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2b95529

Please sign in to comment.