Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Generalize email sending logging (#6075)
Browse files Browse the repository at this point in the history
In ancient times Synapse would only send emails when it was notifying a user about a message they received...

Now it can do all sorts of neat things!

Change the logging so it's not just about notifications.
  • Loading branch information
anoadragon453 authored and richvdh committed Sep 23, 2019
1 parent 885a472 commit 1c9fead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/6075.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change mailer logging to reflect Synapse doesn't just do chat notifications by email now.
2 changes: 1 addition & 1 deletion synapse/push/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def send_email(self, email_address, subject, template_vars):
multipart_msg.attach(text_part)
multipart_msg.attach(html_part)

logger.info("Sending email notification to %s" % email_address)
logger.info("Sending email to %s" % email_address)

yield make_deferred_yieldable(
self.sendmail(
Expand Down

0 comments on commit 1c9fead

Please sign in to comment.