diff --git a/resources/lib/loghandler.py b/resources/lib/loghandler.py index c32fd0d0..b7bb8789 100644 --- a/resources/lib/loghandler.py +++ b/resources/lib/loghandler.py @@ -6,7 +6,7 @@ import xbmc LEVELS = { logging.ERROR: xbmc.LOGERROR, logging.WARNING: xbmc.LOGWARNING, - logging.INFO: xbmc.LOGNOTICE, + logging.INFO: xbmc.LOGINFO, logging.DEBUG: xbmc.LOGDEBUG } ############################################################################### @@ -37,7 +37,7 @@ def config(): class LogHandler(logging.StreamHandler): def __init__(self): logging.StreamHandler.__init__(self) - self.setFormatter(logging.Formatter(fmt=b"%(name)s: %(message)s")) + self.setFormatter(logging.Formatter(fmt='%(name)s: %(message)s')) def emit(self, record): if isinstance(record.msg, str):