1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-04 00:34:39 +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"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"strings" "strings"
@@ -65,6 +66,8 @@ func runEtcd(ctx context.Context, args []string) {
cmd.SysProcAttr = &syscall.SysProcAttr{ cmd.SysProcAttr = &syscall.SysProcAttr{
Pdeathsig: syscall.SIGKILL, Pdeathsig: syscall.SIGKILL,
} }
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
logrus.Info("Running ", strings.Join(args, " ")) logrus.Info("Running ", strings.Join(args, " "))
cmd.Run() cmd.Run()