Add debug log.

This commit is contained in:
redxef 2024-01-16 20:44:34 +01:00
parent 234e2c4bc8
commit d548244fa4
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -104,6 +104,10 @@ def main(config, level, force_refresh):
ovh_client = ovh.Client( ovh_client = ovh.Client(
**config['ovh'], **config['ovh'],
) )
records = get_records(ovh_client, {'zone': config['zone']})
logger.debug('Found records %d:', len(records))
for r in records:
logger.debug(' - %s', repr(r))
records = [ records = [
r r
for r in get_records(ovh_client, {'zone': config['zone']}) for r in get_records(ovh_client, {'zone': config['zone']})