Update log message to something a little easier to read and query for.

This commit is contained in:
Rebecca Law
2022-01-24 12:25:53 +00:00
parent 6cd7a23d3c
commit c01c81326c
2 changed files with 2 additions and 4 deletions

View File

@@ -123,8 +123,7 @@ def update_validation_failed_for_templated_letter(self, notification_id, page_co
notification = get_notification_by_id(notification_id, _raise=True)
notification.status = NOTIFICATION_VALIDATION_FAILED
dao_update_notification(notification)
current_app.logger.info(f"Letter notification id: {notification_id} reference {notification.reference}: "
f"validation failed: letter is too long {page_count}")
current_app.logger.info(f"Validation failed: letter is too long {page_count} for letter with id: {notification_id}")
@notify_celery.task(name='collate-letter-pdfs-to-be-sent')