+ # Devices should _not_ be including a newline at the end of each log-line str (especially when
+ # encapsulated as a LogRecord). But to cope with old device loads, we check for that and fix it here:
+ if line.endswith("\n"):
+ line = line[:-1]
Also: auto reformatting per our trunk formatting rules.