print email error message

This commit is contained in:
Your Name 2024-07-18 07:40:19 -04:00 committed by Henri Dickson
parent 19b08505a2
commit 4e995a970a

View file

@ -40,7 +40,7 @@ class Email:
fail_silently=False,
)
except Exception as e:
logger.error(f"send email {email} failed", extra={"exception": e})
logger.error(f"send email to {email} failed: {e}", extra={"exception": e})
@staticmethod
def generate_login_email(email: str, action: str) -> tuple[str, str]: