mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 19:04:02 +08:00
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)
|
||||
self.log_buffer.log(record.levelno, record.source, record.created,
|
||||
message)
|
||||
|
||||
|
||||
def log_args(parser):
|
||||
group = parser.add_argument_group("logging")
|
||||
|
Loading…
Reference in New Issue
Block a user