Skip to content

Commit 0006417

Browse files
fix(shared): use constant POWERTOOLS_DEV env var
Co-authored-by: Leandro Damascena <[email protected]>
1 parent 38598d3 commit 0006417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: aws_lambda_powertools/shared/functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def bytes_to_string(value: bytes) -> str:
8383

8484

8585
def powertools_dev_is_set() -> bool:
86-
is_on = strtobool(os.getenv("POWERTOOLS_DEV", "0"))
86+
is_on = strtobool(os.getenv(constants.POWERTOOLS_DEV_ENV, "0"))
8787
if is_on:
8888
warnings.warn("POWERTOOLS_DEV environment variable is enabled. Increasing verbosity across utilities.")
8989
return True

0 commit comments

Comments
 (0)