From 3a75bbf4db29acbd40ba6f9006113aa65e5d199e Mon Sep 17 00:00:00 2001 From: ilkelma Date: Tue, 13 Jun 2017 16:23:59 -0400 Subject: [PATCH] Change to CombinedOutput to consume Stderr as well --- webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhook.go b/webhook.go index 3af1ba0..f19c8aa 100644 --- a/webhook.go +++ b/webhook.go @@ -326,7 +326,7 @@ func handleHook(h *hook.Hook, headers, query, payload *map[string]interface{}, b log.Printf("executing %s (%s) with arguments %q and environment %s using %s as cwd\n", h.ExecuteCommand, cmd.Path, cmd.Args, envs, cmd.Dir) - out, err := cmd.Output() + out, err := cmd.CombinedOutput() log.Printf("command output: %s\n", out)