Remove obsolete log level code

This commit is contained in:
croneter 2017-09-06 13:43:52 +02:00
parent b0c62be75f
commit b555df1061
3 changed files with 0 additions and 12 deletions

View file

@ -22,7 +22,6 @@ log = getLogger("PLEX."+__name__)
# settings: window-variable
WINDOW_SETTINGS = {
'logLevel': 'plex_logLevel',
'enableContext': 'plex_context',
'plex_restricteduser': 'plex_restricteduser',
'force_transcode_pix': 'plex_force_transcode_pix',

View file

@ -146,7 +146,6 @@
</category>
<category label="30022"><!-- Advanced -->
<setting id="logLevel" type="enum" label="30004" values="Disabled|Info|Debug" default="1" />
<setting id="startupDelay" type="number" label="30529" default="0" option="int" />
<setting label="39018" type="action" action="RunPlugin(plugin://plugin.video.plexkodiconnect/?mode=repair)" option="close" /> <!-- Repair local database (force update all content) -->
<setting label="30535" type="action" action="RunPlugin(plugin://plugin.video.plexkodiconnect?mode=deviceid)" /><!-- Reset device id uuid -->

View file

@ -81,10 +81,8 @@ class Service():
def __init__(self):
logLevel = self.getLogLevel()
self.monitor = Monitor()
window('plex_logLevel', value=str(logLevel))
window('plex_kodiProfile',
value=tryDecode(translatePath("special://profile")))
window('plex_context',
@ -101,7 +99,6 @@ class Service():
% (settings('useDirectPaths') != "true"))
log.info("Number of sync threads: %s"
% settings('syncThreadNumber'))
log.info("Log Level: %s" % logLevel)
log.info("Full sys.argv received: %s" % argv)
# Reset window props for profile switch
@ -126,13 +123,6 @@ class Service():
# Set the minimum database version
window('plex_minDBVersion', value="1.5.10")
def getLogLevel(self):
try:
logLevel = int(settings('logLevel'))
except ValueError:
logLevel = 0
return logLevel
def __stop_PKC(self):
"""
Kodi's abortRequested is really unreliable :-(