forked from M-Labs/artiq
1
0
Fork 0

protocols/logging/LogParser: handle Windows CRLF

This commit is contained in:
Sebastien Bourdeauducq 2016-01-27 20:45:04 +01:00
parent 590354dbc8
commit 170b438b98
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class LogParser:
entry = (await stream.readline())
if not entry:
break
self.line_input(entry[:-1].decode())
self.line_input(entry.decode().rstrip("\r\n"))
except:
logger.debug("exception in log forwarding", exc_info=True)
break