1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-25 02:18: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/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()