Open brokad opened 3 years ago
It seems like the mess is caused by the logger of reqwest that comes in as the progress is happening. On that note:
Oh wait, nevermind, the version check is done every single time regardless of the command but its done on a separate thread. So not sure how to "fix" this, perhaps lock the stdout before progress-bar finishes and then this other thread can come in.
Hey @hbina
I don't have any better ideas for the implementation save for delaying the network call until the very end of command execution - but then you don't get the benefits of concurrency.
Describe the bug When running with, say
RUST_LOG=debug
, the call toindicatif::ProgressBar::finish_and_clear
seems to be taking with it a line of logs and leave the remaining progress bar in its place.To Reproduce Steps to reproduce the behavior: