mirror of
https://github.com/alvierahman90/gohookr.git
synced 2026-01-26 14:44:00 +00:00
include stderr in command execution output in log
This commit is contained in:
@@ -29,7 +29,7 @@ func (c Command) Execute(payload string, header http.Header) ([]byte, error) {
|
|||||||
arguments = append(arguments, header_builder.String())
|
arguments = append(arguments, header_builder.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
return exec.Command(c.Program, arguments...).Output()
|
return exec.Command(c.Program, arguments...).CombinedOutput()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c Command) String() string {
|
func (c Command) String() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user