add log message for total records found

This commit is contained in:
Ivan Schaller 2023-11-09 14:29:33 +01:00
parent bec8384557
commit 14a98fe132
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,8 @@ class NetBoxDNSSource(octodns.provider.base.BaseProvider):
)
zone.add_record(record, lenient=lenient, replace=self.replace_duplicates)
self.log.info(f"populate: found {len(zone.records)} records for zone {zone.name}")
def _apply(self, plan: octodns.provider.plan.Plan):
"""Apply the changes to the NetBox DNS zone."""
self.log.debug(f"_apply: zone={plan.desired.name}, len(changes)={len(plan.changes)}")