mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-04 15:12:23 -05:00
Fixed sickragetv/sickrage-issues#117 - CensoredFormatter class func format code corrected.
This commit is contained in:
parent
76062ae2a7
commit
785ffdcf2f
@ -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) * '*')
|
||||
|
Loading…
Reference in New Issue
Block a user