We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 256e94f commit dafe7b6Copy full SHA for dafe7b6
openfeature/hook/logging_hook.py
@@ -63,6 +63,10 @@ def error(
63
) -> None:
64
args = self._build_args(hook_context)
65
args["stage"] = "error"
66
- args["error_code"] = exception.error_code if isinstance(exception, OpenFeatureError) else ErrorCode.GENERAL
+ args["error_code"] = (
67
+ exception.error_code
68
+ if isinstance(exception, OpenFeatureError)
69
+ else ErrorCode.GENERAL
70
+ )
71
args["error_message"] = str(exception)
72
self.logger.error("Error stage %s", args)
0 commit comments