fix: #396 Kodi's LOGNOTICE loglevel is deprecated

KODI recenly deprecated LOGNOTICE (as per
https://github.com/xbmc/xbmc/pull/18346) and announced that LOGINFO should be
used instead.

LOGINFO has been available since kodi matrix's migration to spdlog in april
2020.
This commit is contained in:
David Francos 2020-09-17 00:51:46 +02:00
parent b66a838778
commit 8ebee6e6de

View file

@ -61,7 +61,7 @@ class LogHandler(logging.StreamHandler):
for token in self.sensitive['Token']: for token in self.sensitive['Token']:
string = string.replace(token or "{token}", "{jellyfin-token}") string = string.replace(token or "{token}", "{jellyfin-token}")
xbmc.log(string, level=xbmc.LOGNOTICE) xbmc.log(string, level=xbmc.LOGINFO)
@classmethod @classmethod
def _get_log_level(cls, level): def _get_log_level(cls, level):