oscope-dev / scope

Scoping user machines
https://oscope-dev.github.io/scope/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

Fix group logs not being overwritten #96

Closed ethankhall closed 7 months ago

ethankhall commented 7 months ago

This will use a lock provided by IndicatifLayer to ensure that output doesn't get overwritten as the progress bars are displayed.

In order to ensure that STDOUT_WRITER and STDERR_WRITER are always available, they default to stdout and stderr respectively, then as logging is initialized they are replaced with the writer provided by IndicatifLayer, which under the hood uses a mutext when writing to the console.