From e04e2ebab532e6d1ef856a24012f4bec4b10188a Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 5 Apr 2021 21:49:26 +1000 Subject: try better logging for CI --- pkg/commands/oscommands/os.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/commands/oscommands') diff --git a/pkg/commands/oscommands/os.go b/pkg/commands/oscommands/os.go index af5b97ca4..1a486162f 100644 --- a/pkg/commands/oscommands/os.go +++ b/pkg/commands/oscommands/os.go @@ -98,7 +98,7 @@ func (c *OSCommand) RunCommandWithOutput(formatString string, formatArgs ...inte cmd := c.ExecutableFromString(command) output, err := sanitisedCommandOutput(cmd.CombinedOutput()) if err != nil { - c.Log.WithField("command", command).Error(err) + c.Log.WithField("command", command).Error(output) } return output, err } @@ -110,7 +110,7 @@ func (c *OSCommand) CatFile(filename string) (string, error) { cmd := c.Command(arr[0], arr[1:]...) output, err := sanitisedCommandOutput(cmd.CombinedOutput()) if err != nil { - c.Log.WithField("command", cmdStr).Error(err) + c.Log.WithField("command", cmdStr).Error(output) } return output, err } -- cgit v1.2.3