TRACE log when we receive and buffer a non-complete line

This commit is contained in:
jesopo 2018-10-11 17:56:19 +01:00
parent 3d2acc2f61
commit dceed3d439

View file

@ -224,7 +224,10 @@ class Server(IRCObject.Object):
data_lines = [line.strip(b"\r") for line in data.split(b"\n")]
if data_lines[-1]:
self.bot.log.trace("got non-complete line '%s', buffering.",
[data_lines[-1]])
self.read_buffer = data_lines[-1]
data_lines.pop(-1)
decoded_lines = []