From cf3cc2c3a97d9d3532ca793454b30c01ee3958b8 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 5 Sep 2016 20:50:42 +0200 Subject: [PATCH] Revert "Don't log plex tokens" This reverts commit b9793a2e2699634aee16c6388c201a0b02a28bb3. --- resources/lib/loghandler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/loghandler.py b/resources/lib/loghandler.py index 2c4b8f79..51c22aff 100644 --- a/resources/lib/loghandler.py +++ b/resources/lib/loghandler.py @@ -25,6 +25,7 @@ class LogHandler(logging.StreamHandler): self.setFormatter(MyFormatter()) def emit(self, record): + if self._get_log_level(record.levelno): try: xbmc.log(self.format(record), level=xbmc.LOGNOTICE) @@ -66,8 +67,6 @@ class MyFormatter(logging.Formatter): # Call the original formatter class to do the grunt work result = logging.Formatter.format(self, record) - if window('pms_token'): - result = result.replace(window('pms_token'), '') # Restore the original format configured by the user self._fmt = format_orig