Less logging when checking connection
This commit is contained in:
parent
c51a2dfbaf
commit
bdad097bd0
1 changed files with 4 additions and 4 deletions
|
@ -289,8 +289,8 @@ class PlexAPI():
|
||||||
url = 'https://plex.tv/api/home/users'
|
url = 'https://plex.tv/api/home/users'
|
||||||
else:
|
else:
|
||||||
url = url + '/library/onDeck'
|
url = url + '/library/onDeck'
|
||||||
log.info("Checking connection to server %s with verifySSL=%s"
|
log.debug("Checking connection to server %s with verifySSL=%s"
|
||||||
% (url, verifySSL))
|
% (url, verifySSL))
|
||||||
# Check up to 3 times before giving up
|
# Check up to 3 times before giving up
|
||||||
count = 0
|
count = 0
|
||||||
while count < 1:
|
while count < 1:
|
||||||
|
@ -300,7 +300,7 @@ class PlexAPI():
|
||||||
verifySSL=verifySSL,
|
verifySSL=verifySSL,
|
||||||
timeout=4)
|
timeout=4)
|
||||||
if answer is None:
|
if answer is None:
|
||||||
log.info("Could not connect to %s" % url)
|
log.debug("Could not connect to %s" % url)
|
||||||
count += 1
|
count += 1
|
||||||
xbmc.sleep(500)
|
xbmc.sleep(500)
|
||||||
continue
|
continue
|
||||||
|
@ -317,7 +317,7 @@ class PlexAPI():
|
||||||
# We could connect but maybe were not authenticated. No worries
|
# We could connect but maybe were not authenticated. No worries
|
||||||
log.debug("Checking connection successfull. Answer: %s" % answer)
|
log.debug("Checking connection successfull. Answer: %s" % answer)
|
||||||
return 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
|
return False
|
||||||
|
|
||||||
def GetgPMSKeylist(self):
|
def GetgPMSKeylist(self):
|
||||||
|
|
Loading…
Reference in a new issue