mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Merge pull request #1726 from alphagov/add-notification-id-to-log
Update log message
This commit is contained in:
@@ -39,7 +39,7 @@ def send_delivery_status_to_service(self, notification_id):
|
|||||||
"reference": str(notification.client_reference),
|
"reference": str(notification.client_reference),
|
||||||
"to": notification.to,
|
"to": notification.to,
|
||||||
"status": notification.status,
|
"status": notification.status,
|
||||||
"created_at": notification.created_at.strftime(DATETIME_FORMAT), # the time GOV.UK email sent the request
|
"created_at": notification.created_at.strftime(DATETIME_FORMAT), # the time service sent the request
|
||||||
"completed_at": notification.updated_at.strftime(DATETIME_FORMAT), # the last time the status was updated
|
"completed_at": notification.updated_at.strftime(DATETIME_FORMAT), # the last time the status was updated
|
||||||
"sent_at": notification.sent_at.strftime(DATETIME_FORMAT), # the time the email was sent
|
"sent_at": notification.sent_at.strftime(DATETIME_FORMAT), # the time the email was sent
|
||||||
"notification_type": notification.notification_type
|
"notification_type": notification.notification_type
|
||||||
|
|||||||
@@ -46,5 +46,5 @@ def upload_letter_pdf(notification, pdf_data):
|
|||||||
tags={Retention.KEY: Retention.ONE_WEEK}
|
tags={Retention.KEY: Retention.ONE_WEEK}
|
||||||
)
|
)
|
||||||
|
|
||||||
current_app.logger.info("Uploaded letters PDF {} to {}".format(
|
current_app.logger.info("Uploaded letters PDF {} to {} for notification id {}".format(
|
||||||
upload_file_name, current_app.config['LETTERS_PDF_BUCKET_NAME']))
|
upload_file_name, current_app.config['LETTERS_PDF_BUCKET_NAME'], notification.id))
|
||||||
|
|||||||
Reference in New Issue
Block a user