mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-14 03:57:01 +00:00
Log amount of accounts found in PowerDNS
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user