Only print AXFR errors in debug mode

This commit is contained in:
Joshua Boniface 2020-01-06 16:04:37 -05:00
parent bbfadac5e1
commit 30d4470c8f
1 changed files with 2 additions and 1 deletions

View File

@ -355,7 +355,8 @@ 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:
print('{} {} ({})'.format(e, dnsmasq_ip, domain)) if self.config['debug']:
print('{} {} ({})'.format(e, dnsmasq_ip, domain))
continue continue
# Fix the formatting because it's useless # Fix the formatting because it's useless