2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

master/log: do not break lines

This commit is contained in:
Sebastien Bourdeauducq 2016-02-10 06:33:41 +01:00
parent f3f667be5b
commit 2ce1e6a1e9

View File

@ -24,9 +24,9 @@ class LogBufferHandler(logging.Handler):
def emit(self, record): def emit(self, record):
message = self.format(record) message = self.format(record)
for part in message.split("\n"): self.log_buffer.log(record.levelno, record.source, record.created,
self.log_buffer.log(record.levelno, record.source, record.created, message)
part)
def log_args(parser): def log_args(parser):
group = parser.add_argument_group("logging") group = parser.add_argument_group("logging")