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

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chkeita committed Oct 18, 2023
1 parent 1301259 commit a5f42ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cli/onefuzz/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def wait(func: Callable[[], Tuple[bool, str, A]], frequency: float = 1.0) -> A:
Provides user feedback via a spinner if stdout is a TTY.
"""

isatty = sys.stdout.isatty()
# isatty = sys.stdout.isatty()
frames = ["-", "\\", "|", "/"]
waited = False
last_message = None
Expand Down Expand Up @@ -635,6 +635,9 @@ def wait(func: Callable[[], Tuple[bool, str, A]], frequency: float = 1.0) -> A:
waited = True
time.sleep(frequency)
frames.sort(key=frames[0].__eq__)
except Exception as err:
print(f"*** error in wait : {err}", flush=True)
raise err
finally:
if waited and isatty:
print(flush=True)
Expand Down

0 comments on commit a5f42ab

Please sign in to comment.