From aa74c8be64f2796a2dfa7166f0155fff5bb395b6 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Fri, 29 Jul 2022 18:07:12 +0300 Subject: [PATCH] dnsforward: imp logging --- internal/dnsforward/http.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/dnsforward/http.go b/internal/dnsforward/http.go index 979c0881014..97b2ac7e7d5 100644 --- a/internal/dnsforward/http.go +++ b/internal/dnsforward/http.go @@ -632,10 +632,9 @@ func checkDNS( bootstrap = defaultBootstrap } - log.Debug("checking if upstream %s works", upstreamAddr) + log.Debug("dnsforward: checking if upstream %q works", upstreamAddr) - var u upstream.Upstream - u, err = upstream.AddressToUpstream(upstreamAddr, &upstream.Options{ + u, err := upstream.AddressToUpstream(upstreamAddr, &upstream.Options{ Bootstrap: bootstrap, Timeout: timeout, }) @@ -652,7 +651,7 @@ func checkDNS( return err } - log.Debug("upstream %s is ok", upstreamAddr) + log.Debug("dnsforward: upstream %q is ok", upstreamAddr) return nil }