From ca9ea29255c66220536d6b57c65bd36dd2242d43 Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Wed, 6 Dec 2023 16:57:56 +0100 Subject: [PATCH] remove development logs --- client/internal/dns/host_ios.go | 3 --- client/internal/dns/upstream.go | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/client/internal/dns/host_ios.go b/client/internal/dns/host_ios.go index 7659d458a..c90882520 100644 --- a/client/internal/dns/host_ios.go +++ b/client/internal/dns/host_ios.go @@ -3,8 +3,6 @@ package dns import ( "strconv" "strings" - - log "github.com/sirupsen/logrus" ) type iosHostManager struct { @@ -34,7 +32,6 @@ func (a iosHostManager) applyDNSConfig(config hostDNSConfig) error { domainConfig := strings.Join(domainConfigAsString, ";") configAsString = append(configAsString, domainConfig) outputString := strings.Join(configAsString, ",") - log.Debug("applyDNSConfig: " + outputString) a.dnsManager.ApplyDns(outputString) return nil } diff --git a/client/internal/dns/upstream.go b/client/internal/dns/upstream.go index 318890621..ed9cdb8cd 100644 --- a/client/internal/dns/upstream.go +++ b/client/internal/dns/upstream.go @@ -64,7 +64,7 @@ func newUpstreamResolver(parentCTX context.Context, interfaceName string, wgAddr log.Errorf("error while parsing CIDR: %s", err) } index, err := getInterfaceIndex(interfaceName) - log.Debugf("UpstreamResolver interface name: %s, index: %d, ip: %s", interfaceName, index, localIP) + if err != nil { log.Debugf("unable to get interface index for %s: %s", interfaceName, err) } @@ -120,7 +120,6 @@ func (u *upstreamResolver) ServeDNS(w dns.ResponseWriter, r *dns.Msg) { } upstreamIP := net.ParseIP(upstreamHost) if u.lNet.Contains(upstreamIP) || net.IP.IsPrivate(upstreamIP) { - log.Debugf("using private client to query upstream: %s", upstream) upstreamExchangeClient = u.getClientPrivate() } rm, t, exchangeErr = upstreamExchangeClient.Exchange(r, upstream)