Skip to content

Commit

Permalink
refactor: avoid wrapping and unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall committed Jun 10, 2024
1 parent 58b78cc commit 2ae04bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filebeat/input/filestream/copytruncate_prospector.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (p *copyTruncateFileProspector) Run(ctx input.Context, s loginp.StateMetada

errs := tg.Wait()
if len(errs) > 0 {
log.Error("%s", fmt.Errorf("running prospector failed: %w", errors.Join(errs...)))
log.Errorf("running prospector failed: %v", errors.Join(errs...))
}
}

Expand Down
2 changes: 1 addition & 1 deletion filebeat/input/filestream/prospector.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (p *fileProspector) Run(ctx input.Context, s loginp.StateMetadataUpdater, h

errs := tg.Wait()
if len(errs) > 0 {
log.Error("%s", fmt.Errorf("running prospector failed: %w", errors.Join(errs...)))
log.Errorf("running prospector failed: %v", errors.Join(errs...))
}
}

Expand Down

0 comments on commit 2ae04bc

Please sign in to comment.