diff --git a/.idea/Model.iml b/.idea/Model.iml index a079cfaf..c6561970 100644 --- a/.idea/Model.iml +++ b/.idea/Model.iml @@ -7,7 +7,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index b6084632..50cad4ca 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,7 +3,7 @@ - + diff --git a/backend/onboarders/handler.py b/backend/onboarders/handler.py index be7c2f38..91ec11d2 100644 --- a/backend/onboarders/handler.py +++ b/backend/onboarders/handler.py @@ -29,6 +29,7 @@ def handler(event, context): # "format": "xlsx", # "sheet_name": "Sustainability" # } + logger.info("Processing record with body: %s", event_body) validated_event = OnboardingEvent(**event_body) @@ -44,5 +45,6 @@ def handler(event, context): onboarder.transform() logger.info(f"Writing data to {onboarder.output_file_name}, bucket: {onboarder.bucket_name}") onboarder.write() + except Exception as e: logger.error(f"Failed to process record: {e}")