🔊(backend) remove email addresses from invitation failure logs

Email addresses are PII and should not appear in technical or
error logs.

Sanitize logging to avoid exposing sensitive user data when
invitation sending fails.
This commit is contained in:
lebaudantoine
2026-03-24 23:33:35 +01:00
parent e9f90e95b1
commit c5c96369c8
+1 -1
View File
@@ -58,5 +58,5 @@ class InvitationService:
try:
email.send()
except smtplib.SMTPException as e:
logger.error("invitation to %s was not sent: %s", emails, e)
logger.error("invitations were not sent: %s", e)
raise InvitationError("Could not send invitation") from e