From 50840ec7d8206b3e83fbcf780625db1c27bf6146 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 8 Dec 2014 01:25:18 -0800 Subject: [PATCH] Testing fix for censoring logs --- sickbeard/logger.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sickbeard/logger.py b/sickbeard/logger.py index 9ed8f900..ed1b06d7 100644 --- a/sickbeard/logger.py +++ b/sickbeard/logger.py @@ -286,12 +286,18 @@ class SBRotatingLogHandler(object): out_line = ek.ss(message) sb_logger = logging.getLogger('sickbeard') - setattr(sb_logger, 'db', lambda *args: sb_logger.log(DB, *args)) - sub_logger = logging.getLogger('subliminal') imdb_logger = logging.getLogger('imdbpy') tornado_logger = logging.getLogger('tornado') feedcache_logger = logging.getLogger('feedcache') + setattr(sb_logger, 'db', lambda *args: sb_logger.log(DB, *args)) + + # filtering + sb_logger.addFilter(self.blacklistFilter) + sub_logger.addFilter(self.blacklistFilter) + imdb_logger.addFilter(self.blacklistFilter) + tornado_logger.addFilter(self.blacklistFilter) + feedcache_logger.addFilter(self.blacklistFilter) try: if logLevel == DEBUG: