From 40290fdc59d52a637b9fdabe7e5d7fe249478fc2 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 5 Jul 2022 04:45:52 +0200 Subject: [PATCH] docs(debug): Render plurals in log output when applicable --- update-firewall-source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-firewall-source.py b/update-firewall-source.py index 79b4566..f03d0fd 100644 --- a/update-firewall-source.py +++ b/update-firewall-source.py @@ -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