Increase logging

This commit is contained in:
croneter 2019-04-06 12:31:37 +02:00
parent 16423e18ec
commit 4a3b38f5b6

View file

@ -46,8 +46,8 @@ class WebService(backgroundthread.KillableThread):
conn = httplib.HTTPConnection('127.0.0.1:%d' % v.WEBSERVICE_PORT) conn = httplib.HTTPConnection('127.0.0.1:%d' % v.WEBSERVICE_PORT)
conn.request('QUIT', '/') conn.request('QUIT', '/')
conn.getresponse() conn.getresponse()
except Exception: except Exception as error:
utils.ERROR() xbmc.log('Plex.WebService abort error: %s' % error, xbmc.LOGWARNING)
def suspend(self): def suspend(self):
""" """
@ -182,6 +182,7 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def strm(self): def strm(self):
''' Return a dummy video and and queue real items. ''' Return a dummy video and and queue real items.
''' '''
xbmc.log('PLEX.webserver: starting strm', xbmc.LOGWARNING)
self.send_response(200) self.send_response(200)
self.send_header(b'Content-type', b'text/html') self.send_header(b'Content-type', b'text/html')
self.end_headers() self.end_headers()
@ -209,7 +210,8 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
return return
path = 'plugin://plugin.video.plexkodiconnect?mode=playstrm&plex_id=%s' % params['plex_id'] path = 'plugin://plugin.video.plexkodiconnect?mode=playstrm&plex_id=%s' % params['plex_id']
self.wfile.write(bytes(path)) xbmc.log('PLEX.webserver: sending %s' % path, xbmc.LOGWARNING)
self.wfile.write(bytes(path.encode('utf-8')))
if params['plex_id'] not in self.server.pending: if params['plex_id'] not in self.server.pending:
xbmc.log('PLEX.webserver: %s: path: %s params: %s' xbmc.log('PLEX.webserver: %s: path: %s params: %s'
% (str(id(self)), str(self.path), str(params)), % (str(id(self)), str(self.path), str(params)),