Skip to content

Commit

Permalink
Update log_filters.py (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
CM000n authored Feb 5, 2024
1 parent 1a17a62 commit a304107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mytoyota/utils/logging/log_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def mask_sensitive_data(self, msg):
"""Mask sensitive data in logs by given patterns."""
for pattern in self._patterns:
compiled_pattern = re.compile(pattern)
msg = compiled_pattern.sub("****", msg)
msg = compiled_pattern.sub("****", str(msg))
return msg

0 comments on commit a304107

Please sign in to comment.