From c0067b765767a206f0b2ee59814565c75e927e7d Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 10 Jan 2022 15:58:22 +0100 Subject: [PATCH] add more log --- app/email_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/email_utils.py b/app/email_utils.py index e3d0671e..88e511c6 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -534,12 +534,15 @@ def email_can_be_used_as_mailbox(email_address: str) -> bool: email_address, check_deliverability=False, allow_smtputf8=False ).domain except EmailNotValidError: + LOG.d("%s is invalid email address", email_address) return False if not domain: + LOG.d("no valid domain associated to %s", email_address) return False if SLDomain.get_by(domain=domain): + LOG.d("%s is a SL domain", email_address) return False from app.models import CustomDomain