Added logging of ERRORs from server.

This commit is contained in:
Jeremy Fincher 2004-02-16 19:53:19 +00:00
parent de72ad4026
commit 223ac90fde
1 changed files with 1 additions and 0 deletions

View File

@ -579,6 +579,7 @@ class Irc(IrcCommandDispatcher):
def doError(self, msg):
"""Handles ERROR messages."""
log.info('Error message from %s: %s', self.server, msg.args[0])
if msg.args[0].startswith('Closing Link'):
self.driver.reconnect()
elif 'too fast' in msg.args[0]: