mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 23:56:24 -04:00
try better logging for CI
This commit is contained in:
parent
91a107eb6f
commit
e04e2ebab5
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue