-
Notifications
You must be signed in to change notification settings - Fork 92
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
improving error log for runtime::get_next() curl failure #157
improving error log for runtime::get_next() curl failure #157
Conversation
FYI the format check failed https://github.com/awslabs/aws-lambda-cpp/runs/7937034733?check_suite_focus=true, use |
My bad. Totally forgot about that. I'm gonna reformat it today. Thanks |
Done formatting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW my thinking at the time was that curl is an implementation detail that I don't want to expose unless there's a problem I want to debug. Maybe that's too painful and I was wrong.
What do you think of keeping the curl specific error code as "debug" but exposing the endpoint as part of the error message?
I totally see and understand the motivation in hiding implementation details from logs. Maybe there is some room for improvement in the startup process like checking the absence of all required environment variables (and listing them out in stderr just before aborting) but that is a whole new issue/suggestion/discussion which doesn't belong exactly here. So I'm gonna reintroduce the debug log message and let the endpoint in the error one then. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Related to issue #26
Description of changes:
Improves the error log when runtime::get_next() fails (curl error code and error message were only visible as debug logs. This PR promotes them to the error level in order to give users more clue about what is going wrong)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.