Return only stdout from command

docker-compose outputs warning messages to stderr
This commit is contained in:
Harry White 2019-10-28 22:17:28 +11:00
parent d9a94779f3
commit 5d5ca0d3c4

View file

@ -60,7 +60,7 @@ func (c *OSCommand) SetCommand(cmd func(string, ...string) *exec.Cmd) {
func (c *OSCommand) RunCommandWithOutput(command string) (string, error) {
cmd := c.ExecutableFromString(command)
before := time.Now()
output, err := sanitisedCommandOutput(cmd.CombinedOutput())
output, err := sanitisedCommandOutput(cmd.Output())
c.Log.Warn(fmt.Sprintf("'%s': %s", command, time.Since(before)))
return output, err
}