mirror of https://github.com/m-labs/artiq.git
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"))
|
self.setFormatter(logging.Formatter("%(name)s:%(message)s"))
|
||||||
|
|
||||||
def emit(self, record):
|
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,
|
self.log.model.append((record.levelno, record.source,
|
||||||
record.created, self.format(record)))
|
record.created, self.format(record)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue