1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-31 23:19:40 +02:00

try better logging for CI

This commit is contained in:
Jesse Duffield 2021-04-05 21:49:26 +10:00
parent 91a107eb6f
commit e04e2ebab5

View File

@ -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
}