All logging to LOGDEBUG

This commit is contained in:
warwickh 2021-06-29 20:28:48 +10:00
parent a7f74582de
commit 2d76c74f42
3 changed files with 5 additions and 6 deletions

View File

@ -894,7 +894,7 @@ class Connection(object):
'converted': converted}) 'converted': converted})
req = self._getRequest(viewName, q) req = self._getRequest(viewName, q)
xbmc.log("Requesting %s"%str(req.full_url),xbmc.LOGINFO) xbmc.log("Requesting %s"%str(req.full_url),xbmc.LOGDEBUG)
res = self._doBinReq(req) res = self._doBinReq(req)
if isinstance(res, dict): if isinstance(res, dict):
self._checkStatus(res) self._checkStatus(res)
@ -2797,12 +2797,12 @@ class Connection(object):
qdict.update(query) qdict.update(query)
url = '%s:%d/%s/%s' % (self._baseUrl, self._port, self._serverPath, url = '%s:%d/%s/%s' % (self._baseUrl, self._port, self._serverPath,
viewName) viewName)
xbmc.log("Standard URL %s"%url,level=xbmc.LOGINFO) xbmc.log("Standard URL %s"%url,level=xbmc.LOGDEBUG)
xbmc.log("Qdict %s"%str(qdict),level=xbmc.LOGINFO) xbmc.log("Qdict %s"%str(qdict),level=xbmc.LOGDEBUG)
req = urllib.request.Request(url, urlencode(qdict).encode('utf-8')) req = urllib.request.Request(url, urlencode(qdict).encode('utf-8'))
if(self._useGET or ('getCoverArt' in viewName) or ('stream' in viewName)): if(self._useGET or ('getCoverArt' in viewName) or ('stream' in viewName)):
url += '?%s' % urlencode(qdict) url += '?%s' % urlencode(qdict)
xbmc.log("UseGET URL %s"%(url),xbmc.LOGINFO) xbmc.log("UseGET URL %s"%(url),xbmc.LOGDEBUG)
req = urllib.request.Request(url) req = urllib.request.Request(url)
return req return req

View File

@ -481,7 +481,6 @@ class Addon(object):
icon = os.path.join(self.path, self._addon.getAddonInfo('icon')) icon = os.path.join(self.path, self._addon.getAddonInfo('icon'))
if not icon: if not icon:
icon = os.path.join(self.path, 'icon.png') icon = os.path.join(self.path, 'icon.png')
xbmc.log(icon,xbmc.LOGINFO)
if os.path.exists(icon): if os.path.exists(icon):
return icon return icon
else: else:

View File

@ -1107,7 +1107,7 @@ def context_action_star(type,id):
label = Addon().get_localized_string(30034) label = Addon().get_localized_string(30034)
xbmc.log('Context action star returning RunPlugin(%s)' % plugin.get_url(action='star_item',type=type,ids=id,unstar=starred),xbmc.LOGINFO) xbmc.log('Context action star returning RunPlugin(%s)' % plugin.get_url(action='star_item',type=type,ids=id,unstar=starred),xbmc.LOGDEBUG)
return ( return (
label, label,
'RunPlugin(%s)' % plugin.get_url(action='star_item',type=type,ids=id,unstar=starred) 'RunPlugin(%s)' % plugin.get_url(action='star_item',type=type,ids=id,unstar=starred)