mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +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 e:
|
||||||
if isinstance(e, Exception):
|
if isinstance(e, Exception):
|
||||||
e = utils.exnToString(e)
|
e = utils.exnToString(e)
|
||||||
self.warning('Disconnect from %s: %s.', server, e)
|
|
||||||
else:
|
else:
|
||||||
if not server.endswith('.'):
|
e = str(e)
|
||||||
server += '.'
|
if not e.endswith('.'):
|
||||||
self.info('Disconnect from %s', server)
|
e += '.'
|
||||||
|
self.warning('Disconnect from %s: %s', server, e)
|
||||||
|
else:
|
||||||
|
self.info('Disconnect from %s.', server)
|
||||||
|
|
||||||
def reconnect(self, network, when=None):
|
def reconnect(self, network, when=None):
|
||||||
s = 'Reconnecting to %s' % network
|
s = 'Reconnecting to %s' % network
|
||||||
|
Loading…
Reference in New Issue
Block a user