Skip to content

Commit a5c9090

Browse files
committed
fix(logger): Always flush output in stage mode
1 parent c6f1839 commit a5c9090

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

esptool/logger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def print(self, *args, **kwargs):
155155
self._newline_count += message.count("\n")
156156
if kwargs.get("end", "\n") == "\n":
157157
self._newline_count += 1
158+
# Flush output in stage mode to ensure output is always shown immediately
159+
kwargs["flush"] = True
158160
print(*args, **kwargs)
159161
self._print_anyway = False
160162

0 commit comments

Comments
 (0)