Skip to content

Commit

Permalink
Redact UID in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Mar 5, 2024
1 parent 3f77e36 commit 002870b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ def _hide_password(self, content: str | bytes | dict | list) -> str:
redacted = redacted.replace(self._password, "<password>")
if self._token:
redacted = redacted.replace(self._token, "<token>")
if self._nvr_uid:
redacted = redacted.replace(self._nvr_uid, "<uid>")
return redacted

##############################################################################
Expand Down

0 comments on commit 002870b

Please sign in to comment.