Skip to content

Commit

Permalink
dnsforward: imp logging
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jul 29, 2022
1 parent 02dccca commit aa74c8b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/dnsforward/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand All @@ -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
}
Expand Down

0 comments on commit aa74c8b

Please sign in to comment.