🔒️(backend) remove personal data from email failure logs

Fix code that accidentally exposed personal email addresses in logs during
email sending failures. Modify logging to remove identifying information
to protect user privacy while still providing useful debugging context.

Original code was inspired by Docs.
This commit is contained in:
lebaudantoine
2025-04-16 19:10:57 +02:00
committed by aleb_the_flash
parent d92adb7435
commit 7021272075
2 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ class NotificationService:
fail_silently=False,
)
except smtplib.SMTPException as exception:
logger.error("notification to %s was not sent: %s", emails, exception)
logger.error("notification could not be sent: %s", exception)
return False
return True