forked from M-Labs/artiq
1
0
Fork 0

browser: cleanup

This commit is contained in:
Robert Jördens 2016-05-23 10:46:25 +02:00
parent 9dd7ea0bcd
commit b8e7ea8443
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class LogBufferHandler(logging.Handler):
self.setFormatter(logging.Formatter("%(name)s:%(message)s"))
def emit(self, record):
if getattr(self.log, "model") is not None:
if self.log.model is not None:
self.log.model.append((record.levelno, record.source,
record.created, self.format(record)))