mirror of
https://github.com/coredns/coredns.git
synced 2025-11-07 12:36:20 -05:00
Remove some printlns
This commit is contained in:
@@ -340,11 +340,9 @@ func cnameForType(targets []dns.RR, origQtype uint16) []dns.RR {
|
|||||||
func (z *Zone) externalLookup(state request.Request, target string, qtype uint16) []dns.RR {
|
func (z *Zone) externalLookup(state request.Request, target string, qtype uint16) []dns.RR {
|
||||||
m, e := z.Proxy.Lookup(state, target, qtype)
|
m, e := z.Proxy.Lookup(state, target, qtype)
|
||||||
if e != nil {
|
if e != nil {
|
||||||
println(e.Error())
|
|
||||||
// TODO(miek): debugMsg for this as well? Log?
|
// TODO(miek): debugMsg for this as well? Log?
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
println(m.String())
|
|
||||||
return m.Answer
|
return m.Answer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ func (p Proxy) lookup(state request.Request, r *dns.Msg) (*dns.Msg, error) {
|
|||||||
// hosts until timeout (or until we get a nil host).
|
// hosts until timeout (or until we get a nil host).
|
||||||
for time.Now().Sub(start) < tryDuration {
|
for time.Now().Sub(start) < tryDuration {
|
||||||
host := upstream.Select()
|
host := upstream.Select()
|
||||||
println(host.Name)
|
|
||||||
if host == nil {
|
if host == nil {
|
||||||
return nil, errUnreachable
|
return nil, errUnreachable
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user