remove this log in loglist

pull/167/head
liuzheng712 2016-03-27 12:17:02 +08:00
parent bc1d89da89
commit 445a83f78a
1 changed files with 2 additions and 0 deletions

View File

@ -228,6 +228,7 @@ class TermLogRecorder(object):
self._screen.reset()
def setid(self, id):
self.id = id
TermLogRecorder.loglist[str(id)] = self
def write(self, msg):
@ -283,6 +284,7 @@ class TermLogRecorder(object):
timestamp=int(self.recoderStartTime))
if self.user:
record.user.add(self.user)
TermLogRecorder.loglist[self.id].remove(self)
def list(self, user=None, uid=None):
tmp = []