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: try:
self.connect(self.server) self.connect(self.server)
except socket.error, e: 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) self.reconnect(wait=True)
def scheduleReconnect(self): def scheduleReconnect(self):
when = log.timestamp(time.time()+60) when = log.timestamp(time.time()+60)
if not world.dying: 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(): def makeNewDriver():
self.irc.reset() self.irc.reset()
driver = self.__class__(self.server, self.irc) driver = self.__class__(self.server, self.irc)

View File

@ -155,7 +155,7 @@ class SocketDriver(drivers.IrcDriver):
'check for %s', when) 'check for %s', when)
schedule.addEvent(self._checkAndWriteOrReconnect, when) schedule.addEvent(self._checkAndWriteOrReconnect, when)
else: 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.reconnect(wait=True)
self.connected = True self.connected = True
self.reconnectWaitPeriodsIndex = 0 self.reconnectWaitPeriodsIndex = 0
@ -168,7 +168,7 @@ class SocketDriver(drivers.IrcDriver):
self.connected = True self.connected = True
self.reconnectWaitPeriodsIndex = 0 self.reconnectWaitPeriodsIndex = 0
else: 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() self.reconnect()
def _scheduleReconnect(self): def _scheduleReconnect(self):