Skip to content

Commit

Permalink
remove useless debug message when executing a command
Browse files Browse the repository at this point in the history
As we return the error message if the execution fail, use it from where
the method is called.
  • Loading branch information
gustavo-iniguez-goya committed Jul 28, 2020
1 parent eff9c5c commit 00b249a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion daemon/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func Exec(executable string, args []string) (string, error) {

raw, err := exec.Command(path, args...).CombinedOutput()
if err != nil {
fmt.Printf("ERROR: path=%s args=%s err=%s out='%s'\n", path, args, err, raw)
return "", err
} else {
return Trim(string(raw)), nil
Expand Down

0 comments on commit 00b249a

Please sign in to comment.