Don't log self.data
Too much data to print to screen except, perhaps, in exceptional circumstances.
This commit is contained in:
parent
3cfbc23680
commit
0f0ff3ae6b
|
@ -326,7 +326,6 @@ class receiveDataThread(threading.Thread):
|
||||||
logger.exception('sock.recv error. Closing receiveData thread (HOST:%s, ID:%s).',
|
logger.exception('sock.recv error. Closing receiveData thread (HOST:%s, ID:%s).',
|
||||||
self.HOST, id(self))
|
self.HOST, id(self))
|
||||||
break
|
break
|
||||||
logger.debug('Received data: %s.' % repr(self.data))
|
|
||||||
if self.data == "":
|
if self.data == "":
|
||||||
logger.info('Connection to %s closed. Closing receiveData thread. (ID:%s)', self.HOST, id(self))
|
logger.info('Connection to %s closed. Closing receiveData thread. (ID:%s)', self.HOST, id(self))
|
||||||
break
|
break
|
||||||
|
@ -352,7 +351,6 @@ class receiveDataThread(threading.Thread):
|
||||||
logger.info('The size of the connectedHostsList is now: %s' % len(shared.connectedHostsList))
|
logger.info('The size of the connectedHostsList is now: %s' % len(shared.connectedHostsList))
|
||||||
|
|
||||||
def processData(self):
|
def processData(self):
|
||||||
logger.debug('self.data is currently %s', self.data)
|
|
||||||
if len(self.data) < 20: # if so little of the data has arrived that we can't even unpack the payload length
|
if len(self.data) < 20: # if so little of the data has arrived that we can't even unpack the payload length
|
||||||
return
|
return
|
||||||
if self.data[0:4] != '\xe9\xbe\xb4\xd9':
|
if self.data[0:4] != '\xe9\xbe\xb4\xd9':
|
||||||
|
|
Reference in New Issue
Block a user