Skip to content

Commit

Permalink
remove exception logging during evaluation
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
  • Loading branch information
beeme1mr committed Jul 1, 2024
1 parent 5c7bd14 commit 7afa421
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions openfeature/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,19 +361,13 @@ def evaluate_flag_details( # noqa: PLR0915
return flag_evaluation

except OpenFeatureError as err:
logger.exception(
"Error %s while evaluating flag with key: '%s'",
err.error_code,
flag_key,
)

error_hooks(flag_type, hook_context, err, reversed_merged_hooks, hook_hints)

return FlagEvaluationDetails(
flag_key=flag_key,
value=default_value,
reason=Reason.ERROR,
error_code=err.error_code,
error_code=err.error_code or ErrorCode.GENERAL,
error_message=err.error_message,
)
# Catch any type of exception here since the user can provide any exception
Expand Down

0 comments on commit 7afa421

Please sign in to comment.