We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 939652f commit 70108e3Copy full SHA for 70108e3
aws_lambda_powertools/utilities/data_classes/common.py
@@ -42,15 +42,15 @@ def _str_helper(self) -> Dict[str, Any]:
42
stored in the Data Class but should not be logged out.
43
"""
44
properties = self._properties()
45
- blacklist = ["raw_event"]
+ sensitive_properties = ["raw_event"]
46
try:
47
- blacklist.extend(self.__getattribute__("_str_sensitive_data"))
+ sensitive_properties.extend(self.__getattribute__("_str_sensitive_data"))
48
except AttributeError:
49
pass
50
51
result: Dict[str, Any] = {}
52
for property_key in properties:
53
- if property_key in blacklist:
+ if property_key in sensitive_properties:
54
result[property_key] = "[SENSITIVE]"
55
else:
56
property_value = getattr(self, property_key)
0 commit comments