2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-13 11:17:49 +00:00

Log disconnection when a console session is closed

This commit is contained in:
jbjohnso 2014-04-22 11:23:17 -04:00
parent 3e6d405abf
commit e2395be10a

View File

@ -122,6 +122,9 @@ class _ConsoleHandler(object):
def close(self):
self._send_rcpts({'deleting': True})
if self._console:
self.logger.log(
logdata='console disconnected', ltype=log.DataTypes.event,
event=log.Events.consoledisconnect)
self._console.close()
self._console = None
if self.connectionthread: