mirror of https://github.com/m-labs/artiq.git
protocols/logging/LogParser: handle Windows CRLF
This commit is contained in:
parent
590354dbc8
commit
170b438b98
|
@ -78,7 +78,7 @@ class LogParser:
|
||||||
entry = (await stream.readline())
|
entry = (await stream.readline())
|
||||||
if not entry:
|
if not entry:
|
||||||
break
|
break
|
||||||
self.line_input(entry[:-1].decode())
|
self.line_input(entry.decode().rstrip("\r\n"))
|
||||||
except:
|
except:
|
||||||
logger.debug("exception in log forwarding", exc_info=True)
|
logger.debug("exception in log forwarding", exc_info=True)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue