Skip to content

Commit

Permalink
print actual command
Browse files Browse the repository at this point in the history
  • Loading branch information
syou6162 committed Nov 5, 2017
1 parent abca617 commit cfa52ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"os"
"os/exec"
"runtime"
"strings"
"time"

"github.com/Songmu/timeout"
Expand Down Expand Up @@ -56,7 +57,7 @@ func RunCommandArgs(cmdArgs []string, user string, env []string) (stdout, stderr
err = fmt.Errorf("command timed out")
}
if err != nil {
utilLogger.Errorf("RunCommand error command: %T, error: %s", cmdArgs, err.Error())
utilLogger.Errorf("RunCommand error command: %s, error: %s", strings.Join(cmdArgs, " "), err.Error())
}
return stdout, stderr, exitStatus.GetChildExitCode(), err
}

0 comments on commit cfa52ed

Please sign in to comment.