Private GIT

Skip to content
Snippets Groups Projects
Commit 785ffdcf authored by echel0n's avatar echel0n
Browse files

Fixed sickragetv/sickrage-issues#117 - CensoredFormatter class func format code corrected.

parent 76062ae2
Branches
Tags
No related merge requests found
...@@ -51,7 +51,7 @@ class NullHandler(logging.Handler): ...@@ -51,7 +51,7 @@ class NullHandler(logging.Handler):
class CensoredFormatter(logging.Formatter): class CensoredFormatter(logging.Formatter):
def format(self, record): def format(self, record):
msg = super(CensoredFormatter, self).format(record) msg = record.getMessage()
for k, v in censoredItems.items(): for k, v in censoredItems.items():
if v and len(v) > 0 and v in msg: if v and len(v) > 0 and v in msg:
msg = msg.replace(v, len(v) * '*') msg = msg.replace(v, len(v) * '*')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment