Fix missing logging
This commit is contained in:
parent
2274565c0d
commit
3a859279ec
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue