diff --git a/plexpy/web_socket.py b/plexpy/web_socket.py index 0aff6931..0ab81120 100644 --- a/plexpy/web_socket.py +++ b/plexpy/web_socket.py @@ -176,11 +176,10 @@ def process(opcode, data): return False try: - logger.websocket_debug(data) info = json.loads(data) except Exception as e: logger.warn(u"Tautulli WebSocket :: Error decoding message from websocket: %s" % e) - logger.debug(data) + logger.websocket_error(data) return False info = info.get('NotificationContainer', info) @@ -190,6 +189,7 @@ def process(opcode, data): return False if type == 'playing': + logger.websocket_debug(data) time_line = info.get('PlaySessionStateNotification', info.get('_children', {})) if not time_line: @@ -203,6 +203,7 @@ def process(opcode, data): logger.error(u"Tautulli WebSocket :: Failed to process session data: %s." % e) if type == 'timeline': + logger.websocket_debug(data) time_line = info.get('TimelineEntry', info.get('_children', {})) if not time_line: