From dc07b0ad6a79ea18e19b34112ec0878ae4f7372c Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Tue, 17 Sep 2019 14:11:44 -0700 Subject: [PATCH] Log etcd output --- pkg/kwrapper/etcd/etcd_linux.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/kwrapper/etcd/etcd_linux.go b/pkg/kwrapper/etcd/etcd_linux.go index 715b142d..00675203 100644 --- a/pkg/kwrapper/etcd/etcd_linux.go +++ b/pkg/kwrapper/etcd/etcd_linux.go @@ -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()