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'
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue