Fixed length on receive

This commit is contained in:
PhilipTrauner 2016-03-08 08:44:57 +01:00
parent befca7cdf8
commit f8c699f5af

View file

@ -74,7 +74,7 @@ class ESock:
self._sock.close()
return None, ""
if self.debug:
Logging.info("Received %d-long '%s' on route '%s': %s (%s:%d)" % (data_length, type(data).__name__, route, str(data).replace("\n", " "), self.address, self.port))
Logging.info("Received %d-long '%s' on route '%s': %s (%s:%d)" % (len(data), type(data).__name__, route, str(data).replace("\n", " "), self.address, self.port))
return data, route