add log attrs for failed emails (#3812)

This commit is contained in:
Jonathan Dobson
2025-10-24 17:48:12 -04:00
committed by GitHub
parent b1baacf138
commit 5a3ae387a1

View File

@@ -24,7 +24,7 @@ async def _send(*, message: EmailMessage) -> bool:
LOG.info("email: Email sent")
except Exception as e:
LOG.error("email: Failed to send email", error=str(e))
LOG.error("email: Failed to send email", error=str(e), host=settings.SMTP_HOST, port=settings.SMTP_PORT)
raise e
return True