mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 18:29:53 +00:00
Log progress when interactive=false (#382)
* Log progress when interactive=false * safe print statement
This commit is contained in:
@@ -135,10 +135,11 @@ func runPreflights(v *viper.Viper, arg string) error {
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case _, ok := <-progressCh:
|
||||
case msg, ok := <-progressCh:
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
fmt.Fprintf(os.Stderr, "%v\n", msg)
|
||||
case <-finishedCh:
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user