Debug log raw data

This commit is contained in:
jesopo 2018-09-04 07:20:17 +01:00
parent dcba6d2c6e
commit b989b720eb

View file

@ -162,6 +162,9 @@ class Bot(object):
for line in lines:
if self.args.verbose:
self.log.info("<%s | %s", [str(server), line])
else:
self.log.debug("%s (raw) | %s", [str(server),
line])
server.parse_line(line)
elif event & select.EPOLLOUT:
server._send()