From d08d401769aa509a33fc9d758176358cf30e4405 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 20 Dec 2014 20:36:01 -0800 Subject: [PATCH] Fix for sickragetv/sickrage-issues#236 --- sickbeard/logger.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sickbeard/logger.py b/sickbeard/logger.py index 3f3268c9..8cc53c57 100644 --- a/sickbeard/logger.py +++ b/sickbeard/logger.py @@ -51,8 +51,11 @@ class NullHandler(logging.Handler): pass class CensoredFormatter(logging.Formatter): + def __init__(self, *args, **kwargs): + super(CensoredFormatter, self).__init__(*args, **kwargs) + def format(self, record): - msg = record.getMessage() + msg = super(CensoredFormatter, self).format(record) for k, v in censoredItems.items(): if v and len(v) > 0 and v in msg: msg = msg.replace(v, len(v) * '*')