* rDNS: make log messages' level = debug

This commit is contained in:
Simon Zolin 2019-08-07 15:35:06 +03:00
parent 4f08f96607
commit d659e7ee08
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ func resolveRDNS(ip string) string {
resp, err := config.dnsctx.upstream.Exchange(&req)
if err != nil {
log.Error("Error while making an rDNS lookup for %s: %s", ip, err)
log.Debug("Error while making an rDNS lookup for %s: %s", ip, err)
return ""
}
if len(resp.Answer) != 1 {
@ -92,7 +92,7 @@ func resolveRDNS(ip string) string {
}
ptr, ok := resp.Answer[0].(*dns.PTR)
if !ok {
log.Error("not a PTR response for %s", ip)
log.Debug("not a PTR response for %s", ip)
return ""
}