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

Commit 1c9fead

Browse files
anoadragon453richvdh
authored andcommitted
Generalize email sending logging (#6075)
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.
1 parent 885a472 commit 1c9fead

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/6075.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change mailer logging to reflect Synapse doesn't just do chat notifications by email now.

synapse/push/mailer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def send_email(self, email_address, subject, template_vars):
311311
multipart_msg.attach(text_part)
312312
multipart_msg.attach(html_part)
313313

314-
logger.info("Sending email notification to %s" % email_address)
314+
logger.info("Sending email to %s" % email_address)
315315

316316
yield make_deferred_yieldable(
317317
self.sendmail(

0 commit comments

Comments
 (0)