mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Slight rewording of log message.
This commit is contained in:
parent
4837707e65
commit
a898bdaa94
@ -69,13 +69,13 @@ class AsyncoreDriver(asynchat.async_chat, object):
|
||||
try:
|
||||
self.connect(self.server)
|
||||
except socket.error, e:
|
||||
log.warning('Error connecting to %s: %s', self.irc.server, e)
|
||||
log.warning('Error connecting to %s: %s', self.server[0], e)
|
||||
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.irc.server, when)
|
||||
log.info('Scheduling reconnect to %s at %s', self.server[0], when)
|
||||
def makeNewDriver():
|
||||
self.irc.reset()
|
||||
driver = self.__class__(self.server, self.irc)
|
||||
|
@ -155,7 +155,7 @@ class SocketDriver(drivers.IrcDriver):
|
||||
'check for %s', when)
|
||||
schedule.addEvent(self._checkAndWriteOrReconnect, when)
|
||||
else:
|
||||
log.warning('Error connecting to %s: %s', self.irc.server, e)
|
||||
log.warning('Error connecting to %s: %s', self.server[0], e)
|
||||
self.reconnect(wait=True)
|
||||
self.connected = True
|
||||
self.reconnectWaitPeriodsIndex = 0
|
||||
@ -168,7 +168,7 @@ class SocketDriver(drivers.IrcDriver):
|
||||
self.connected = True
|
||||
self.reconnectWaitPeriodsIndex = 0
|
||||
else:
|
||||
log.warning('Error connecting to %s: Timed out.', self.irc.server)
|
||||
log.warning('Error connecting to %s: Timed out.', self.server[0])
|
||||
self.reconnect()
|
||||
|
||||
def _scheduleReconnect(self):
|
||||
|
Loading…
Reference in New Issue
Block a user