From 4fffdd95e96de1b3b366af2004e64ea02ea58157 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 5 Dec 2021 14:37:11 +0100 Subject: [PATCH] Reduce logging level --- core/admin/mailu/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/admin/mailu/utils.py b/core/admin/mailu/utils.py index 024c487f..755be013 100644 --- a/core/admin/mailu/utils.py +++ b/core/admin/mailu/utils.py @@ -66,10 +66,10 @@ def has_dane_record(domain, timeout=10): return app.config['DEFER_ON_TLS_ERROR'] except dns.exception.Timeout: app.logger.warn(f'Timeout while resolving the TLSA record for {domain} ({timeout}s).') - except dns.resolver.NXDOMAIN: + except (dns.resolver.NXDOMAIN, dns.name.EmptyLabel): pass # this is expected, not TLSA record is fine except Exception as e: - app.logger.error(f'Error while looking up the TLSA record for {domain} {e}') + app.logger.info(f'Error while looking up the TLSA record for {domain} {e}') pass # Rate limiter