From a0a28be8cf83238dfe9cb0d9ec2138eb39116cfa Mon Sep 17 00:00:00 2001 From: Maksym Shkolnyi Date: Fri, 17 Jan 2025 19:32:41 +0100 Subject: [PATCH] Replace source with source_address as "source" is a keyword in slog which assumes address of the line in the code, from where invocation happened Signed-off-by: Maksym Shkolnyi --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 77ace06..d0f3436 100644 --- a/main.go +++ b/main.go @@ -105,7 +105,7 @@ func (s *smokePingers) start() { s.started = s.prepared splay := time.Duration(s.maxInterval.Nanoseconds() / int64(len(s.started))) for _, pinger := range s.started { - logger.Info("Starting prober", "address", pinger.Addr(), "interval", pinger.Interval, "size_bytes", pinger.Size, "source", pinger.Source) + logger.Info("Starting prober", "address", pinger.Addr(), "interval", pinger.Interval, "size_bytes", pinger.Size, "source_address", pinger.Source) s.g.Go(pinger.Run) time.Sleep(splay) }