Merge pull request #839 from dod-ccpo/subject-email-notifications

Record the email subject for notification logs
This commit is contained in:
George Drummond 2019-05-22 10:56:16 -04:00 committed by GitHub
commit 42900a20a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)