From 29c316960e7027eb4cd02ef20fee6db5eaf17b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Sat, 18 Nov 2023 20:28:04 +0800 Subject: [PATCH] local-check: improve warn logs included in tracing --- client/localok/local-check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/localok/local-check.go b/client/localok/local-check.go index e954a57..71bea20 100644 --- a/client/localok/local-check.go +++ b/client/localok/local-check.go @@ -225,7 +225,7 @@ func (l *LocalOK) update(ctx context.Context) bool { go func(h namedIP) { ok, err := l.sanityCheckHost(ctx, cfg, h.Name, h.IP) if err != nil { - log.WarnContext(ctx, "local-check failure", "server", h.Name, "ip", h.IP.String(), "err", err) + log.WarnContext(ctx, "local-check failure", "server", h.Name, "ip", h.IP.String(), "err", err.Error()) span.RecordError(err) }