Log amount of accounts found in PowerDNS

This commit is contained in:
Nick Douma 2020-08-06 17:45:05 +02:00
parent 3c59ba6f84
commit 70c2744f29

View File

@ -229,6 +229,8 @@ class Account(db.Model):
timeout=int(Setting().get('pdns_api_timeout')), timeout=int(Setting().get('pdns_api_timeout')),
verify=Setting().get('verify_ssl_connections')) verify=Setting().get('verify_ssl_connections'))
list_jaccount = set(d['account'] for d in jdata if d['account']) list_jaccount = set(d['account'] for d in jdata if d['account'])
current_app.logger.info("Found {} accounts in PowerDNS".format(
len(list_jaccount)))
try: try:
# Remove accounts that don't exist any more # Remove accounts that don't exist any more