Enhanced error logging

Updated the formatting of the `out` to be logged as a string rather than a bunch of bytes.
This commit is contained in:
Jeff Wenzbauer
2019-08-28 12:43:08 -06:00
committed by GitHub
parent 360dd63e49
commit 0421b32834
+1 -1
View File
@@ -24,7 +24,7 @@ func (task *BashTask) Run(ctx context.Context) (bool, error) {
if err != nil {
task.logger.With("canary", task.canary).Errorf("command failed %s %v %s", task.command, err, out)
return false, fmt.Errorf(" %v %v", err, out)
return false, fmt.Errorf(" %v %s", err, out)
} else {
if task.logCmdOutput {
fmt.Printf("%s\n", out)