1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-31 06:35:09 +00:00

Log etcd output

This commit is contained in:
Darren Shepherd
2019-09-17 14:11:44 -07:00
parent 25c20af174
commit dc07b0ad6a

View File

@@ -6,6 +6,7 @@ import (
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path/filepath"
"strings"
@@ -65,6 +66,8 @@ func runEtcd(ctx context.Context, args []string) {
cmd.SysProcAttr = &syscall.SysProcAttr{
Pdeathsig: syscall.SIGKILL,
}
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
logrus.Info("Running ", strings.Join(args, " "))
cmd.Run()