def connectionLost(self, reason): # log.msg( "received call to LSP.connectionLost" ) transport = self.transport.session.conn.transport if self.ttylog_open: log.msg('Closing TTY log: %s' % transport.ttylog_file) ttylog.ttylog_close(transport.ttylog_file, time.time()) self.ttylog_open = False insults.ServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): # log.msg("received call to LSP.connectionLost") transport = self.transport.session.conn.transport if self.ttylog_open: log.msg(eventid="KIPP0012", format="Closing TTY Log: %(ttylog)s", ttylog=transport.ttylog_file) ttylog.ttylog_close(transport.ttylog_file, time.time()) self.ttylog_open = False insults.ServerProtocol.connectionLost(self, reason)
def connectionLost(self, reason): # log.msg( "received call to LSP.connectionLost" ) transport = self.transport.session.conn.transport if self.ttylog_open: log.msg( eventid='KIPP0012', format='Closing TTY Log: %(ttylog)s', ttylog=transport.ttylog_file) ttylog.ttylog_close(transport.ttylog_file, time.time()) self.ttylog_open = False insults.ServerProtocol.connectionLost(self, reason)