1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -05:00

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

This commit is contained in:
echel0n 2014-12-20 15:30:24 -08:00
parent 76062ae2a7
commit 785ffdcf2f

View File

@ -51,7 +51,7 @@ class NullHandler(logging.Handler):
class CensoredFormatter(logging.Formatter):
def format(self, record):
msg = super(CensoredFormatter, self).format(record)
msg = record.getMessage()
for k, v in censoredItems.items():
if v and len(v) > 0 and v in msg:
msg = msg.replace(v, len(v) * '*')