From dceed3d439bfb550db1e754d8f88db0017aac9b4 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 11 Oct 2018 17:56:19 +0100 Subject: [PATCH] TRACE log when we receive and buffer a non-complete line --- src/IRCServer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/IRCServer.py b/src/IRCServer.py index c389efed..ead8ab3c 100644 --- a/src/IRCServer.py +++ b/src/IRCServer.py @@ -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 = []