🔒️(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:
committed by
aleb_the_flash
parent
d92adb7435
commit
7021272075
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user