Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3-sqs input: log a lambda event summary in case of errors #860

Merged
merged 9 commits into from
Dec 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review comments
  • Loading branch information
zmoog committed Dec 11, 2024
commit b0ac84b5eb9a87dde92590f5b612b3e3d3609905
6 changes: 3 additions & 3 deletions handlers/aws/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ def summarize_lambda_event(event: dict[str, Any], max_records: int = 10) -> dict
# Update the summary with the new information.
summary["aws:sqs"] = aws_sqs_summary

except Exception as e:
shared_logger.exception("error summarizing lambda event", exc_info=e)
except Exception as exc:
shared_logger.exception("error summarizing lambda event", exc_info=exc)
# We add an error message to the summary so users know if the summary
# is incomplete.
summary["error"] = str(e)
summary["error"] = str(exc)

return summary

Expand Down
Loading