diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-05 21:49:26 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | e04e2ebab532e6d1ef856a24012f4bec4b10188a (patch) | |
tree | e08ac52f7480b83ce20ab0e7f974942d8c024f99 /pkg/commands/oscommands | |
parent | 91a107eb6f2b81f6554c7a230258b507f3d1dae6 (diff) |
try better logging for CI
Diffstat (limited to 'pkg/commands/oscommands')
-rw-r--r-- | pkg/commands/oscommands/os.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |