mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Cleaned up a few logging messages.
This commit is contained in:
parent
5ac4a569a1
commit
bdafdfe113
@ -68,14 +68,14 @@ class AsyncoreDriver(asynchat.async_chat, object):
|
||||
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
try:
|
||||
self.connect(self.server)
|
||||
except:
|
||||
log.exception('Error connecting:')
|
||||
self.close()
|
||||
except socket.error, e:
|
||||
log.warning('Error connecting to %s: %s',self.irc.server,e.args[1])
|
||||
self.reconnect(wait=True)
|
||||
|
||||
def scheduleReconnect(self):
|
||||
when = log.timestamp(time.time()+60)
|
||||
if not world.dying:
|
||||
log.info('Scheduling reconnect to %s at %s', self.server, when)
|
||||
log.info('Scheduling reconnect to %s at %s', self.irc.server, when)
|
||||
def makeNewDriver():
|
||||
self.irc.reset()
|
||||
driver = self.__class__(self.server, self.irc)
|
||||
|
@ -144,7 +144,8 @@ class SocketDriver(drivers.IrcDriver):
|
||||
self.conn.settimeout(conf.supybot.drivers.poll())
|
||||
except socket.error, e:
|
||||
if e.args[0] != 115:
|
||||
log.warning('Error connecting to %s: %s', self.server, e)
|
||||
log.warning('Error connecting to %s: %s',
|
||||
self.irc.server, e.args[1])
|
||||
self.reconnect(wait=True)
|
||||
self.connected = True
|
||||
self.reconnectWaitPeriodsIndex = 0
|
||||
|
Loading…
Reference in New Issue
Block a user