Log Level instant change

I grew tired of restarting Kodi everytime....so I made it so the log
level changes on the stop without restarting Kodi. Also removed NextUp
import and added the downloadUtils 200 response to help debug in the
future.
This commit is contained in:
angelblue05 2015-06-05 05:12:09 -05:00
parent 5f7f08079c
commit 20ac3c9465
6 changed files with 23 additions and 9 deletions

View file

@ -32,7 +32,7 @@ class UserClient(threading.Thread):
WINDOW = xbmcgui.Window(10000)
stopClient = False
logLevel = 0
logLevel = int(addon.getSetting('logLevel'))
auth = True
retry = 0
@ -359,6 +359,13 @@ class UserClient(threading.Thread):
# Get the latest addon settings
self.addon = xbmcaddon.Addon(id=self.addonId)
# Verify the log level
currLogLevel = self.getLogLevel()
if self.logLevel != currLogLevel:
# Set new log level
self.logLevel = currLogLevel
self.logMsg("New Log Level: %s" % currLogLevel, 0)
self.WINDOW.setProperty('getLogLevel', str(currLogLevel))
if (self.WINDOW.getProperty("Server_status") != ""):
status = self.WINDOW.getProperty("Server_status")