Do not log data sent to socket

This commit is contained in:
Rafal Makagon
2019-11-20 15:48:00 +01:00
parent 8bf367d0f9
commit 66ab1809b8

View File

@@ -304,8 +304,8 @@ class Connection():
try:
line = self._encoder.encode(data)
logging.debug("Sending data: %s", line)
data = (line + "\n").encode("utf-8")
logging.debug("Sending %d byte of data", len(data))
self._task_manager.create_task(send_task(data), "send")
except TypeError as error:
logging.error(str(error))