Skip to content

Commit 70108e3

Browse files
committed
fix
1 parent 939652f commit 70108e3

File tree

1 file changed

+3
-3
lines changed
  • aws_lambda_powertools/utilities/data_classes

1 file changed

+3
-3
lines changed

aws_lambda_powertools/utilities/data_classes/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ def _str_helper(self) -> Dict[str, Any]:
4242
stored in the Data Class but should not be logged out.
4343
"""
4444
properties = self._properties()
45-
blacklist = ["raw_event"]
45+
sensitive_properties = ["raw_event"]
4646
try:
47-
blacklist.extend(self.__getattribute__("_str_sensitive_data"))
47+
sensitive_properties.extend(self.__getattribute__("_str_sensitive_data"))
4848
except AttributeError:
4949
pass
5050

5151
result: Dict[str, Any] = {}
5252
for property_key in properties:
53-
if property_key in blacklist:
53+
if property_key in sensitive_properties:
5454
result[property_key] = "[SENSITIVE]"
5555
else:
5656
property_value = getattr(self, property_key)

0 commit comments

Comments
 (0)