Skip to content

Commit d7b6aa2

Browse files
authored
Log progress when interactive=false (#382)
* Log progress when interactive=false * safe print statement
1 parent 0d56371 commit d7b6aa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/preflight/cli/run.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ func runPreflights(v *viper.Viper, arg string) error {
135135
go func() {
136136
for {
137137
select {
138-
case _, ok := <-progressCh:
138+
case msg, ok := <-progressCh:
139139
if !ok {
140140
return
141141
}
142+
fmt.Fprintf(os.Stderr, "%v\n", msg)
142143
case <-finishedCh:
143144
return
144145
}

0 commit comments

Comments
 (0)