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')),
verify=Setting().get('verify_ssl_connections'))
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:
# Remove accounts that don't exist any more