diff --git a/buildbox/script.go b/buildbox/script.go index 04d355e8a9..761f56a8c5 100644 --- a/buildbox/script.go +++ b/buildbox/script.go @@ -78,6 +78,8 @@ func RunScript(dir string, script string, env []string, callback func(Process)) _, err = io.Copy(&buffer, pty) if err != nil { Logger.Errorf("io.Copy failed with error: %T: %v", err, err) + } else { + Logger.Debug("io.Copy finsihed") } w.Done() @@ -97,6 +99,8 @@ func RunScript(dir string, script string, env []string, callback func(Process)) time.Sleep(1000 * time.Millisecond) } + Logger.Debug("Finished routine that copies the buffer to the process output") + w.Done() }()