mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
Irc: log full tracebacks when disconnecting due to an error
This commit is contained in:
parent
89f9b46ec0
commit
ead20f5be9
@ -334,8 +334,7 @@ class Irc(utils.DeprecatedAttributesObject):
|
||||
# We also catch SystemExit here as a way to abort out connection threads properly, and stop the
|
||||
# IRC connection from freezing instead.
|
||||
except (OSError, RuntimeError, SystemExit) as e:
|
||||
log.error('(%s) Disconnected from IRC: %s: %s',
|
||||
self.name, type(e).__name__, str(e))
|
||||
log.exception('(%s) Disconnected from IRC:', self.name)
|
||||
|
||||
self.disconnect()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user