Skip to content

Commit

Permalink
Merge pull request #9 from runreveal/alan/remove-logs
Browse files Browse the repository at this point in the history
remove extraneous logs
  • Loading branch information
abraithwaite authored Sep 5, 2024
2 parents 2bad49b + d581088 commit 5c42afa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions await/await.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ func (r *runner) Run(ctx context.Context) error {
slog.Error("stopping on signal", "signal", sig)
case <-ctx.Done():
err = ctx.Err()
slog.Error("stopping on context done", "err", err)
if !errors.Is(err, context.Canceled) {
slog.Error("error on context done", "err", err)
}
case err = <-errc:
slog.Info("await: stopping on error returned", "err", err)
}
Expand All @@ -142,7 +144,6 @@ func (r *runner) Run(ctx context.Context) error {
err = waitOrTimeout(r.stopTimeout, &waitCount, err)

if errors.Is(err, context.Canceled) {
slog.Info("await: stopped on context canceled")
return nil
}

Expand Down

0 comments on commit 5c42afa

Please sign in to comment.