From a5f42abf53229150bdf6acc4746e5570d7b79b2e Mon Sep 17 00:00:00 2001 From: Cheick Keita Date: Wed, 18 Oct 2023 11:38:41 -0700 Subject: [PATCH] more logging --- src/cli/onefuzz/backend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli/onefuzz/backend.py b/src/cli/onefuzz/backend.py index 7f23e7de03..2cdb239398 100644 --- a/src/cli/onefuzz/backend.py +++ b/src/cli/onefuzz/backend.py @@ -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 @@ -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)