docs(debug): Render plurals in log output when applicable

This commit is contained in:
hygienic-books 2022-07-05 04:45:52 +02:00
parent a92e83a7c6
commit 40290fdc59

View File

@ -229,7 +229,7 @@ def resolve_domain(domain: str) -> list[str]:
dns_records = []
[dns_records.append(dns_record.address) for dns_record in a_records if a_records]
[dns_records.append(dns_record.address) for dns_record in aaaa_records if aaaa_records]
log.debug(f"Found records: {dns_records}")
log.info(f"""For {domain!r} found {p.plural("record", len(dns_records))}: {dns_records}""")
return dns_records