Skip to content

Commit 9e735a8

Browse files
committed
mpremoteboard: Improve log handling
1 parent 3509103 commit 9e735a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mpflash/mpflash/mpremoteboard/runner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ def timed_out():
125125
continue
126126
else:
127127
if not no_info:
128+
if line.startswith(("INFO : ", "WARN : ", "ERROR : ")):
129+
line = line[8:].lstrip()
128130
log.info(line)
129131
if proc.stderr and log_errors:
130132
for line in proc.stderr:

0 commit comments

Comments
 (0)