mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
fix: #396 Brough back kodi 18 lognotice compat.
Kodi 18 seems to not log LOGINFO messages, this approach uses LOGNOTICE if its available and LOGINFO otherwise, ensuring compatibility without needing to check for kodi versions
This commit is contained in:
parent
8ebee6e6de
commit
cf1ee30e18
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ 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.LOGINFO)
|
xbmc.log(string, level=getattr(xbmc, 'LOGNOTICE', xbmc.LOGINFO))
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_log_level(cls, level):
|
def _get_log_level(cls, level):
|
||||||
|
|
Loading…
Reference in a new issue