From 14644ded2958617c964ce3c3a1c28fe18a6d2f13 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Mon, 1 Apr 2024 06:07:56 -0700 Subject: [PATCH] warn on reload when previous pinger had failed Signed-off-by: Carlos Rodriguez-Fernandez --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index b8d23d6..9f4589f 100644 --- a/main.go +++ b/main.go @@ -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