Skip to content

Commit

Permalink
More debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithpitt committed Jun 14, 2014
1 parent 39ca3b4 commit 84c15b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildbox/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
}()

Expand Down

0 comments on commit 84c15b1

Please sign in to comment.