fix: include ioutil helpers

This commit is contained in:
garethgeorge
2024-04-06 14:42:45 -07:00
parent e2be189f9e
commit 88a926b0a3
2 changed files with 88 additions and 2 deletions

View File

@@ -67,8 +67,8 @@ func (t *TaskWithOperation) runWithOpAndContext(ctx context.Context, do func(ctx
err := do(ctx, t.op)
if bytes := buf.Bytes(); len(bytes) > 0 {
ref, e := t.orch.logStore.Write(bytes)
if str := capture.String(); len(str) > 0 {
ref, e := t.orch.logStore.Write([]byte(str))
if e != nil {
errors.Join(err, fmt.Errorf("failed to write log to logstore: %w", e))
}