mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 10:42:25 -05:00
Added notification id to the log message for upload pdf to make it easier to search for the letter notification in the logs.
This commit is contained in:
@@ -39,7 +39,7 @@ def send_delivery_status_to_service(self, notification_id):
|
||||
"reference": str(notification.client_reference),
|
||||
"to": notification.to,
|
||||
"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
|
||||
"sent_at": notification.sent_at.strftime(DATETIME_FORMAT), # the time the email was sent
|
||||
"notification_type": notification.notification_type
|
||||
|
||||
@@ -46,5 +46,5 @@ def upload_letter_pdf(notification, pdf_data):
|
||||
tags={Retention.KEY: Retention.ONE_WEEK}
|
||||
)
|
||||
|
||||
current_app.logger.info("Uploaded letters PDF {} to {}".format(
|
||||
upload_file_name, current_app.config['LETTERS_PDF_BUCKET_NAME']))
|
||||
current_app.logger.info("Uploaded letters PDF {} to {} for notification id {}".format(
|
||||
upload_file_name, current_app.config['LETTERS_PDF_BUCKET_NAME'], notification.id))
|
||||
|
||||
Reference in New Issue
Block a user