Skip to content

Commit 1f00438

Browse files
Fix DD_FLUSH_TO_LOG env var type checking
1 parent c965e9b commit 1f00438

File tree

1 file changed

+1
-0
lines changed
  • aws_lambda_powertools/metrics/provider/datadog

1 file changed

+1
-0
lines changed

aws_lambda_powertools/metrics/provider/datadog/datadog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def __init__(
6666
)
6767
self.default_tags = default_tags or {}
6868
self.flush_to_log = resolve_env_var_choice(choice=flush_to_log, env=os.getenv(constants.DATADOG_FLUSH_TO_LOG))
69+
# When set as env var, the value is a string
6970
if isinstance(self.flush_to_log, str):
7071
self.flush_to_log = strtobool(self.flush_to_log)
7172

0 commit comments

Comments
 (0)