Less logging when checking connection

This commit is contained in:
tomkat83 2016-12-17 13:09:18 +01:00
parent c51a2dfbaf
commit bdad097bd0

View file

@ -289,8 +289,8 @@ class PlexAPI():
url = 'https://plex.tv/api/home/users'
else:
url = url + '/library/onDeck'
log.info("Checking connection to server %s with verifySSL=%s"
% (url, verifySSL))
log.debug("Checking connection to server %s with verifySSL=%s"
% (url, verifySSL))
# Check up to 3 times before giving up
count = 0
while count < 1:
@ -300,7 +300,7 @@ class PlexAPI():
verifySSL=verifySSL,
timeout=4)
if answer is None:
log.info("Could not connect to %s" % url)
log.debug("Could not connect to %s" % url)
count += 1
xbmc.sleep(500)
continue
@ -317,7 +317,7 @@ class PlexAPI():
# We could connect but maybe were not authenticated. No worries
log.debug("Checking connection successfull. Answer: %s" % answer)
return answer
log.info('Failed to connect to %s too many times. PMS is dead' % url)
log.debug('Failed to connect to %s too many times. PMS is dead' % url)
return False
def GetgPMSKeylist(self):