Closed Torxed closed 3 years ago
I am very novice when it comes to python. The following helped me a bit.
import logging
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
But then I just see this:
DEBUG:irc.client:connect(server='chat.freenode.net', port=6697, nickname='wscrsfasd', ...)
DEBUG:irc.client:TO SERVER: NICK alskdfjadf
DEBUG:irc.client:TO SERVER: USER alskdfjadf 0 * :alskdfjadf
DEBUG:irc.client:process_forever(timeout=0.2)
DEBUG:irc.client:_dispatcher: disconnect
I am very novice when it comes to python. The following helped me a bit.
import logging logging.basicConfig() logging.getLogger().setLevel(logging.DEBUG)
But then I just see this:
DEBUG:irc.client:connect(server='chat.freenode.net', port=6697, nickname='wscrsfasd', ...) DEBUG:irc.client:TO SERVER: NICK alskdfjadf DEBUG:irc.client:TO SERVER: USER alskdfjadf 0 * :alskdfjadf DEBUG:irc.client:process_forever(timeout=0.2) DEBUG:irc.client:_dispatcher: disconnect
That helps, I ended up triggering on_endofmotd
as well as on_welcome
hooks.
But I still don't get the connect log, but I simply just stopped caring and went on my way :)
If there are events that are missing logging statements, I'd welcome improvements to that effect. As written, this issue is more of a question that's been answered. Thanks lord-carlos.
If for instance, when connecting to
irc.freenode.net
there's an issue during the connection phase that will go undetected. Subsequent c.join() in the testbot example will fail.There's very little actual documentation on examples and such, just the doc strings and API source code as reference. But I can't seam to find a function/docstring mentioning the log or history.
Is it possible to debug why the join isn't working after the welcome message has arrived (which do arrive)?