Status bar obscures text not printed through the logging mechanism (e.g. stack traces)
I would like an option such as '--simple-output' which removes the status bar and all ANSI cursor-movement escape codes from the output of bst
.
While developing a new buildstream project, I caused an exception in one job, which caused a backtrace to be printed. The exception is a separate issue and will need to be fixed, but it was compounded by the bst
status bar being printed over the last two lines of the backtrace, so I couldn't see the actual error:
...
File "/home/jimmacarthur/testing/buildstream/buildstream/_ostree.py", line 203
, in exists
ref = checksum(repo, ref)
File "/home/jimmacarthur/testing/buildstream/buildstream/_ostree.py", line 232
=========================== 00:00:03 BSD Games (1/1) ===========================
(Tracked:0 0 0)
~~~~~ Active Tasks ~~~~~
[00:00:03][Track:bsdgames.bst]
It's possible to get the text of the backtrace by redirecting stderr, but this isn't a very obvious strategy and I have no idea what I'd do on a non-POSIX operating system.
Edited by Jim MacArthur