From d3907182eb264b6172f6b67d58faec8454b569fa Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 21 Jun 2023 18:25:24 +0200 Subject: [PATCH] ActionExecCommandE: added log --- defaultActions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/defaultActions.go b/defaultActions.go index 539f6e861..a94c68f1e 100644 --- a/defaultActions.go +++ b/defaultActions.go @@ -64,6 +64,7 @@ func ActionExecCommandE(name string, arg ...string) func(f func(output []byte, e cmd := c.Command(name, arg...) cmd.Stdout = &stdout cmd.Stderr = &stderr + LOG.Printf("executing %#v", cmd.String()) if err := cmd.Run(); err != nil { if exitErr, ok := err.(*exec.ExitError); ok { exitErr.Stderr = stderr.Bytes() // seems this needs to be set manually due to stdout being collected?