Skip to content

Commit

Permalink
add print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai committed Feb 8, 2023
1 parent 869dd1b commit 2f0179d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sesemailcallbacks/ses_to_sqs_email_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def lambda_handler(event, context):
queue = sqs.get_queue_by_name(
QueueName='eks-notification-canada-cadelivery-receipts'
)

print("Task has begun")
for record in event["Records"]:
task = {
"task": "process-ses-result",
Expand Down Expand Up @@ -53,6 +53,9 @@ def lambda_handler(event, context):
}
msg = base64.b64encode(bytes(json.dumps(envelope), 'utf-8')).decode("utf-8")
queue.send_message(MessageBody=msg)
print("Record has moved to call process-ses-result")
print("Task has ended")


return {
'statusCode': 200
Expand Down

0 comments on commit 2f0179d

Please sign in to comment.