From 5576ef97ca15683a73e75b15da6666239ea519a3 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 22 Jan 2016 17:34:26 +0100 Subject: [PATCH] Plex companion logging --- resources/lib/plexbmchelper/settings.py | 10 +++------- resources/settings.xml | 4 +++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/resources/lib/plexbmchelper/settings.py b/resources/lib/plexbmchelper/settings.py index 3e0272b7..9307a3b8 100644 --- a/resources/lib/plexbmchelper/settings.py +++ b/resources/lib/plexbmchelper/settings.py @@ -2,6 +2,7 @@ import uuid import xbmc import xbmcaddon from xml.dom.minidom import parse +import utils settings = {} try: @@ -21,13 +22,8 @@ def getGUI(name): addon = xbmcaddon.Addon() plexbmc = xbmcaddon.Addon('plugin.video.plexkodiconnect') -if plexbmc.getSetting('logLevel') == '2' or \ - plexbmc.getSetting('logLevel') == '1': - settings['debug'] = 'true' - settings['gdm_debug'] = 'true' -else: - settings['debug'] = 'false' - settings['gdm_debug'] = 'false' +settings['debug'] = utils.settings('companionDebugging') +settings['gdm_debug'] = utils.settings('companionGDMDebugging') settings['client_name'] = plexbmc.getSetting('deviceName') diff --git a/resources/settings.xml b/resources/settings.xml index 0420a839..c84a85bf 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -27,7 +27,7 @@ - + @@ -84,5 +84,7 @@ + +