parent
b9793a2e26
commit
cf3cc2c3a9
1 changed files with 1 additions and 2 deletions
|
@ -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'), '<PLEX-PMS-TOKEN>')
|
||||
|
||||
# Restore the original format configured by the user
|
||||
self._fmt = format_orig
|
||||
|
|
Loading…
Reference in a new issue