Add debug for IRC messages

This commit is contained in:
Darks 2022-03-11 19:54:48 +01:00
parent 62044869a3
commit fab0166ad4
Signed by: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 2 additions and 0 deletions

2
irc.py
View File

@ -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):