Record the email subject for notification logs

This commit is contained in:
George Drummond 2019-05-22 10:17:04 -04:00
parent 8801dc86a6
commit 1bf5075b80
No known key found for this signature in database
GPG Key ID: 296DD6077123BF17

View File

@ -47,8 +47,8 @@ class ATSTQueue(RQ):
@classmethod
def _send_notification_mail(self, recipients, subject, body):
app.logger.info(
"Sending a notification to these recipients: {}\n\n{}".format(
recipients, body
"Sending a notification to these recipients: {}\n\nSubject: {}\n\n{}".format(
recipients, subject, body
)
)
app.mailer.send(recipients, subject, body)