Fix missing logging

This commit is contained in:
angelblue05 2016-08-07 03:40:18 -05:00
parent 2274565c0d
commit 3a859279ec

View file

@ -28,9 +28,9 @@ class LogHandler(logging.StreamHandler):
if self._getLogLevel(record.levelno): if self._getLogLevel(record.levelno):
try: try:
xbmc.log(self.format(record)) xbmc.log(self.format(record), level=xbmc.LOGNOTICE)
except UnicodeEncodeError: except UnicodeEncodeError:
xbmc.log(self.format(record).encode('utf-8')) xbmc.log(self.format(record).encode('utf-8'), level=xbmc.LOGNOTICE)
def _getLogLevel(self, level): def _getLogLevel(self, level):