Only print AXFR errors in debug mode
This commit is contained in:
parent
bbfadac5e1
commit
30d4470c8f
|
@ -355,6 +355,7 @@ class AXFRDaemonInstance(object):
|
||||||
z = dns.zone.from_xfr(axfr)
|
z = dns.zone.from_xfr(axfr)
|
||||||
records_raw = [z[n].to_text(n) for n in z.nodes.keys()]
|
records_raw = [z[n].to_text(n) for n in z.nodes.keys()]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
if self.config['debug']:
|
||||||
print('{} {} ({})'.format(e, dnsmasq_ip, domain))
|
print('{} {} ({})'.format(e, dnsmasq_ip, domain))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue