From fab0166ad4fe6cafe2144ec8295b9b9747a0246d Mon Sep 17 00:00:00 2001 From: Darks Date: Fri, 11 Mar 2022 19:54:48 +0100 Subject: [PATCH] =?UTF-8?q?Add=20debug=20for=20IRC=C2=A0messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irc.py b/irc.py index 3f96b60..f16ea1b 100644 --- a/irc.py +++ b/irc.py @@ -101,9 +101,11 @@ class IRC(object): def _send(self, raw): """ Wrap and encode raw message to send """ self._socket.send(f"{raw}\r\n".encode()) + logging.debug(f"_send: {raw}") def _recv(self): m = self._inbox.get() + logging.debug(f"_recv: {m}") return m def _waitfor(self, condition):