irchandler: fix the logging