mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
*Really* make the disconnect message look good with twistedDrivers.
This commit is contained in:
parent
ee4900cb81
commit
a0dbc917c2
@ -150,11 +150,13 @@ class Log(object):
|
||||
if e:
|
||||
if isinstance(e, Exception):
|
||||
e = utils.exnToString(e)
|
||||
self.warning('Disconnect from %s: %s.', server, e)
|
||||
else:
|
||||
e = str(e)
|
||||
if not e.endswith('.'):
|
||||
e += '.'
|
||||
self.warning('Disconnect from %s: %s', server, e)
|
||||
else:
|
||||
if not server.endswith('.'):
|
||||
server += '.'
|
||||
self.info('Disconnect from %s', server)
|
||||
self.info('Disconnect from %s.', server)
|
||||
|
||||
def reconnect(self, network, when=None):
|
||||
s = 'Reconnecting to %s' % network
|
||||
|
Loading…
Reference in New Issue
Block a user