Slight rewording of log message.

This commit is contained in:
Jeremy Fincher 2004-03-25 12:14:41 +00:00
parent 4837707e65
commit a898bdaa94
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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):