mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Reduce websocket logging to playing and timeline only
This commit is contained in:
parent
c5a9ecd4ac
commit
446170f8de
1 changed files with 3 additions and 2 deletions
|
@ -176,11 +176,10 @@ def process(opcode, data):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.websocket_debug(data)
|
|
||||||
info = json.loads(data)
|
info = json.loads(data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warn(u"Tautulli WebSocket :: Error decoding message from websocket: %s" % e)
|
logger.warn(u"Tautulli WebSocket :: Error decoding message from websocket: %s" % e)
|
||||||
logger.debug(data)
|
logger.websocket_error(data)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
info = info.get('NotificationContainer', info)
|
info = info.get('NotificationContainer', info)
|
||||||
|
@ -190,6 +189,7 @@ def process(opcode, data):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if type == 'playing':
|
if type == 'playing':
|
||||||
|
logger.websocket_debug(data)
|
||||||
time_line = info.get('PlaySessionStateNotification', info.get('_children', {}))
|
time_line = info.get('PlaySessionStateNotification', info.get('_children', {}))
|
||||||
|
|
||||||
if not time_line:
|
if not time_line:
|
||||||
|
@ -203,6 +203,7 @@ def process(opcode, data):
|
||||||
logger.error(u"Tautulli WebSocket :: Failed to process session data: %s." % e)
|
logger.error(u"Tautulli WebSocket :: Failed to process session data: %s." % e)
|
||||||
|
|
||||||
if type == 'timeline':
|
if type == 'timeline':
|
||||||
|
logger.websocket_debug(data)
|
||||||
time_line = info.get('TimelineEntry', info.get('_children', {}))
|
time_line = info.get('TimelineEntry', info.get('_children', {}))
|
||||||
|
|
||||||
if not time_line:
|
if not time_line:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue