Skip to content

Commit

Permalink
log all vagrant output
Browse files Browse the repository at this point in the history
  • Loading branch information
sdomino committed Nov 19, 2015
1 parent e7e1e1c commit d7fe920
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util/vagrant/vagrant.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func handleCMDout(cmd *exec.Cmd) {
stderrScanner := bufio.NewScanner(stderr)
go func() {
for stderrScanner.Scan() {
Log.Error(stderrScanner.Text())
Error("A vagrant error occured", stderrScanner.Text())
}
}()

Expand All @@ -194,6 +194,9 @@ func handleCMDout(cmd *exec.Cmd) {
txt := strings.TrimSpace(stdoutScanner.Text())
app := config.Nanofile.Name

// log all vagrant output (might as well)
Log.Info(txt)

// handle generic cases
switch {

Expand Down

0 comments on commit d7fe920

Please sign in to comment.