mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
browser: cleanup
This commit is contained in:
parent
9dd7ea0bcd
commit
b8e7ea8443
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user