Skip to content

Commit

Permalink
Change log redaction logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestoLoma committed Dec 31, 2024
1 parent 63639e9 commit 3b26184
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyatlan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ class AuthorizationFilter(logging.Filter):

def filter(self, record: logging.LogRecord) -> bool:
if isinstance(record.args, dict) and "access_token" in record.args:
record.args = record.args.copy()
record.args["access_token"] = "***REDACTED***" # noqa: S105
elif record.args and hasattr(record.args, "__iter__"):
for arg in record.args:
Expand Down

0 comments on commit 3b26184

Please sign in to comment.