mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-14 01:35:31 +00:00
fix: include ioutil helpers
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user