1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-25 10:28:37 +00:00

Merge pull request #306 from ibuildthecloud/log

Log etcd output
This commit is contained in:
Darren Shepherd 2019-09-17 14:15:48 -07:00 committed by GitHub
commit a40a48add2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()