No websocket message logging

This commit is contained in:
tomkat83 2016-03-28 14:43:35 +02:00
parent 85c3f3949b
commit c401cd9835
2 changed files with 1 additions and 1 deletions

View file

@ -1195,7 +1195,6 @@ class LibrarySync(Thread):
do with "process_" methods
"""
typus = message.get('type')
self.logMsg('Message received from websocket: %s' % message, 2)
if typus == 'playing':
self.process_playing(message['_children'])
elif typus == 'timeline':

View file

@ -78,6 +78,7 @@ class WebSocket_Client(threading.Thread):
return False
# Triage
self.logMsg('Message received: %s' % message, 2)
typus = message.get('type')
if typus is None:
self.logMsg('No message type, dropping message: %s' % message, -1)