mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-12 16:40:26 +00:00
Log amount of accounts found in PowerDNS
This commit is contained in:
parent
3c59ba6f84
commit
70c2744f29
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user