Skip to content

Commit 53603f0

Browse files
committed
debug
1 parent 6f90c2a commit 53603f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ack_backend/src/ack_processor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def lambda_handler(event, context):
2828
logger.info(f"SAW DEBUG record {i}")
2929
try:
3030
incoming_message_body = json.loads(record["body"])
31+
logger.info(f"SAW DEBUG incoming_message_body {i}: {incoming_message_body}")
3132
except Exception as body_json_error:
3233
raise ValueError("Could not load incoming message body") from body_json_error
3334

@@ -43,6 +44,8 @@ def lambda_handler(event, context):
4344
created_at_formatted_string = incoming_message_body[0].get("created_at_formatted_string")
4445

4546
for message in incoming_message_body:
47+
msg = message if message else 'EMPTY MESSAGE'
48+
logger.info(f"SAW DEBUG message {i}: {msg}")
4649
ack_data_rows.append(convert_message_to_ack_row(message, created_at_formatted_string))
4750

4851
update_ack_file(file_key, message_id, supplier, vaccine_type, created_at_formatted_string, ack_data_rows)

0 commit comments

Comments
 (0)