Skip to content

Commit

Permalink
feat: add handler fail log print
Browse files Browse the repository at this point in the history
  • Loading branch information
MadratJerry committed Aug 18, 2024
1 parent 3134c5b commit 63bacfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subscriber/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def lambda_handler(event, context):
# process message
print(f"message content: message={message_dict}, task_id={task_id}, task={task}")
except Exception as e:
print(f"message handle error: ${e}")
batch_item_failures.append({"itemIdentifier": record['messageId']})

sqs_batch_response["batchItemFailures"] = batch_item_failures
Expand Down

0 comments on commit 63bacfb

Please sign in to comment.