forked from M-Labs/artiq
master/log: do not break lines
This commit is contained in:
parent
f3f667be5b
commit
2ce1e6a1e9
|
@ -24,9 +24,9 @@ class LogBufferHandler(logging.Handler):
|
|||
|
||||
def emit(self, record):
|
||||
message = self.format(record)
|
||||
for part in message.split("\n"):
|
||||
self.log_buffer.log(record.levelno, record.source, record.created,
|
||||
part)
|
||||
message)
|
||||
|
||||
|
||||
def log_args(parser):
|
||||
group = parser.add_argument_group("logging")
|
||||
|
|
Loading…
Reference in New Issue