Remove some printlns

This commit is contained in:
Miek Gieben
2016-11-10 14:09:49 +00:00
parent 9328a8e7a4
commit 8dd47dd932
2 changed files with 0 additions and 3 deletions

View File

@@ -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
} }

View File

@@ -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
} }