mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-22 06:18:57 +00:00
added loglevel from settings and exception to logmessages
This commit is contained in:
parent
b5214ad8ba
commit
200040dd62
2 changed files with 23 additions and 12 deletions
|
@ -24,9 +24,8 @@ addonSettings = xbmcaddon.Addon(id='plugin.video.mb3sync')
|
|||
language = addonSettings.getLocalizedString
|
||||
|
||||
def logMsg(title, msg, level = 1):
|
||||
|
||||
#todo --> get this from a setting
|
||||
logLevel = 1
|
||||
|
||||
logLevel = int(addonSettings.getSetting("logLevel"))
|
||||
|
||||
if(logLevel >= level):
|
||||
if(logLevel == 1):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue