Skip to content

Commit

Permalink
warn on reload when previous pinger had failed
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Rodriguez-Fernandez <[email protected]>
  • Loading branch information
carlosrodfern committed Apr 1, 2024
1 parent c2529c1 commit 14644de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ func (s *smokePingers) start() {
return
}
if s.g != nil {
s.stop()
err := s.stop()
if err != nil {
level.Warn(logger).Log("msg", "At least one previous pinger failed to run", "err", err)
}
}
s.g = new(errgroup.Group)
s.started = s.prepared
Expand Down

0 comments on commit 14644de

Please sign in to comment.