mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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:
|
||||
if not server.endswith('.'):
|
||||
server += '.'
|
||||
self.info('Disconnect from %s', server)
|
||||
e = str(e)
|
||||
if not e.endswith('.'):
|
||||
e += '.'
|
||||
self.warning('Disconnect from %s: %s', server, e)
|
||||
else:
|
||||
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