Skip to content

Commit 5c42afa

Browse files
authored
Merge pull request #9 from runreveal/alan/remove-logs
remove extraneous logs
2 parents 2bad49b + d581088 commit 5c42afa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

await/await.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ func (r *runner) Run(ctx context.Context) error {
132132
slog.Error("stopping on signal", "signal", sig)
133133
case <-ctx.Done():
134134
err = ctx.Err()
135-
slog.Error("stopping on context done", "err", err)
135+
if !errors.Is(err, context.Canceled) {
136+
slog.Error("error on context done", "err", err)
137+
}
136138
case err = <-errc:
137139
slog.Info("await: stopping on error returned", "err", err)
138140
}
@@ -142,7 +144,6 @@ func (r *runner) Run(ctx context.Context) error {
142144
err = waitOrTimeout(r.stopTimeout, &waitCount, err)
143145

144146
if errors.Is(err, context.Canceled) {
145-
slog.Info("await: stopped on context canceled")
146147
return nil
147148
}
148149

0 commit comments

Comments
 (0)