diff --git a/lambda/bulk-ods-update/bulk_ods_update.py b/lambda/bulk-ods-update/bulk_ods_update.py index dd088f3..5c745e3 100644 --- a/lambda/bulk-ods-update/bulk_ods_update.py +++ b/lambda/bulk-ods-update/bulk_ods_update.py @@ -175,6 +175,7 @@ def compare_and_overwrite(download_type: OdsDownloadType, data: list[dict]): PracticeOds.icb_ods_code.set(amended_record.get("IcbOdsCode")), ] ) + logger.info(f'Overwriting for ODS: {amended_record.get("PracticeOdsCode")} - Name: {amended_record.get("PracticeName")} | ICB: {amended_record.get("IcbOdsCode")}') except Exception as e: logger.info( f"Failed to create/update record by Practice ODS code: {str(e)}" @@ -186,5 +187,6 @@ def compare_and_overwrite(download_type: OdsDownloadType, data: list[dict]): try: icb = IcbOds(amended_record.get("IcbOdsCode")) icb.update(actions=[IcbOds.icb_name.set(amended_record.get("IcbName"))]) + logger.info(f'Overwriting for ODS: {amended_record.get("IcbOdsCode")} - Name: {amended_record.get("IcbName")}') except Exception as e: logger.info(f"Failed to create/update record by ICB ODS code: {str(e)}")