mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 00:06:07 -07:00
Less log spam of cloud server status
This commit is contained in:
parent
8447663e27
commit
a5d2467bfe
2 changed files with 6 additions and 4 deletions
|
@ -328,7 +328,8 @@ def check_server_updates():
|
||||||
logger.info(u"Tautulli Monitor :: No PMS update available.")
|
logger.info(u"Tautulli Monitor :: No PMS update available.")
|
||||||
|
|
||||||
|
|
||||||
def check_cloud_status():
|
def check_cloud_status(log=False):
|
||||||
|
if log:
|
||||||
logger.info(u"Tautulli Monitor :: Checking for Plex Cloud server status...")
|
logger.info(u"Tautulli Monitor :: Checking for Plex Cloud server status...")
|
||||||
|
|
||||||
plex_tv = plextv.PlexTV()
|
plex_tv = plextv.PlexTV()
|
||||||
|
@ -338,4 +339,5 @@ def check_cloud_status():
|
||||||
logger.info(u"Tautulli Monitor :: Plex Cloud server is active.")
|
logger.info(u"Tautulli Monitor :: Plex Cloud server is active.")
|
||||||
check_server_response()
|
check_server_response()
|
||||||
else:
|
else:
|
||||||
|
if log:
|
||||||
logger.info(u"Tautulli Monitor :: Plex Cloud server is sleeping.")
|
logger.info(u"Tautulli Monitor :: Plex Cloud server is sleeping.")
|
||||||
|
|
|
@ -123,7 +123,7 @@ def run():
|
||||||
except websocket.WebSocketConnectionClosedException:
|
except websocket.WebSocketConnectionClosedException:
|
||||||
if plexpy.CONFIG.PMS_IS_CLOUD:
|
if plexpy.CONFIG.PMS_IS_CLOUD:
|
||||||
logger.warn(u"Tautulli WebSocket :: Connection has closed.")
|
logger.warn(u"Tautulli WebSocket :: Connection has closed.")
|
||||||
activity_pinger.check_cloud_status()
|
activity_pinger.check_cloud_status(log=True)
|
||||||
|
|
||||||
if not plexpy.CONFIG.PMS_IS_CLOUD and reconnects < plexpy.CONFIG.WEBSOCKET_CONNECTION_ATTEMPTS:
|
if not plexpy.CONFIG.PMS_IS_CLOUD and reconnects < plexpy.CONFIG.WEBSOCKET_CONNECTION_ATTEMPTS:
|
||||||
reconnects += 1
|
reconnects += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue