-
Notifications
You must be signed in to change notification settings - Fork 89
fixed app imort failures not being logged #273
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
Conversation
Thanks for the PR and sorry about the delay in reviewing it. Why is the InternalServerError exception being returned rather than raised? |
Also, tests aren't passing with this change. Are you able to fix the tests? |
The tests are failing due to a github actions deprecation which has nothing to do with the code in the PR. I will have a look and see if I can adjust the action |
no worries ;) The reason for returning an InternalServerError is that at the raised exception is not a valid response that is expected from a Lamfba and as such is ignored. The previous logic emitted the trace which is not a valid lambda response and also is not logged so its not visible in Cloudwatch either. to replicate is simple to replicate. without this PR
with this PR
I hope this helps clarify why this is important for debugging runtime isses. |
Thanks for clarifying. I think we can release that change as a minor version, since it is a change in behavior but not backwards-incompatible in the general case and will not affect any existing and functioning deployments. I did fix the deprecated action on |
sounds good to me
Aah ok .... I Thought I ran the tests and they passed .... |
…nto fix/init_start_logging
@logandk All tests passing locally now ;) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #273 +/- ##
=======================================
Coverage 98.19% 98.19%
=======================================
Files 5 5
Lines 609 611 +2
Branches 75 75
=======================================
+ Hits 598 600 +2
Misses 11 11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thanks @circulon! Everything looks great, awesome work. I'll merge now and prepare a release. |
This PR fixes the issue where no log messages are added to CloudWatch during the pre-start (app) setup.
This is a major issue when integration layers with the Lambda and import errors are thrown.
The messages will now be visible in the CloudWath log and an InternalServerError is returned to the client.