docs(debug): Render plurals in log output when applicable
This commit is contained in:
parent
a92e83a7c6
commit
40290fdc59
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user