Skip to content

Commit

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

"github.com/Songmu/timeout"
Expand Down Expand Up @@ -57,7 +56,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: %s, error: %s", strings.Join(cmdArgs, " "), err.Error())
utilLogger.Errorf("RunCommand error command: %v, error: %s", cmdArgs, err.Error())
}
return stdout, stderr, exitStatus.GetChildExitCode(), err
}

0 comments on commit a7b0bbe

Please sign in to comment.