From 0421b328341e83c27c31a4c8edfb74d9f8b71a09 Mon Sep 17 00:00:00 2001 From: Jeff Wenzbauer Date: Wed, 28 Aug 2019 12:43:08 -0600 Subject: [PATCH] Enhanced error logging Updated the formatting of the `out` to be logged as a string rather than a bunch of bytes. --- pkg/loadtester/bash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/loadtester/bash.go b/pkg/loadtester/bash.go index 229bda4f..8631c6f0 100644 --- a/pkg/loadtester/bash.go +++ b/pkg/loadtester/bash.go @@ -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)