Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit a5f42ab

Browse files
committed
more logging
1 parent 1301259 commit a5f42ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cli/onefuzz/backend.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def wait(func: Callable[[], Tuple[bool, str, A]], frequency: float = 1.0) -> A:
607607
Provides user feedback via a spinner if stdout is a TTY.
608608
"""
609609

610-
isatty = sys.stdout.isatty()
610+
# isatty = sys.stdout.isatty()
611611
frames = ["-", "\\", "|", "/"]
612612
waited = False
613613
last_message = None
@@ -635,6 +635,9 @@ def wait(func: Callable[[], Tuple[bool, str, A]], frequency: float = 1.0) -> A:
635635
waited = True
636636
time.sleep(frequency)
637637
frames.sort(key=frames[0].__eq__)
638+
except Exception as err:
639+
print(f"*** error in wait : {err}", flush=True)
640+
raise err
638641
finally:
639642
if waited and isatty:
640643
print(flush=True)

0 commit comments

Comments
 (0)