From e056d8dc440039d7b3f308247687bf99d105b596 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 14 Feb 2022 18:06:06 +0100 Subject: [PATCH] fix: de-dupe dns resolver logging, more concise [ci skip] --- pkg/dns/common.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/dns/common.go b/pkg/dns/common.go index d10f2bdb..4fa0f477 100644 --- a/pkg/dns/common.go +++ b/pkg/dns/common.go @@ -47,8 +47,6 @@ func EnsureIPv4(domainName string) (string, error) { }, } - logrus.Debugf("created DNS resolver via %s", freifunkDNS) - ctx := context.Background() ips, err := resolver.LookupIPAddr(ctx, domainName) if err != nil { @@ -60,7 +58,7 @@ func EnsureIPv4(domainName string) (string, error) { } ipv4 = ips[0].IP.To4().String() - logrus.Debugf("discovered the following ipv4 addr: %s", ipv4) + logrus.Debugf("%s points to %s (resolver: %s)", domainName, ipv4, freifunkDNS) return ipv4, nil }