-
Notifications
You must be signed in to change notification settings - Fork 99
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
env var to set loglevel for python logging #41
Comments
Thank you for the suggestion barakbd. It seems the default log level environment variable name in Go is |
Thank you @barakbd for this suggestion. We have merged functionality upstream to enable the providing of the log level via the environment variable This functionality will be available with the next merge from upstream. I will leave this ticket open until the next merge from upstream. Thanks you! |
Has this been merge, I'm trying to debug why the RIE exits with a 0 code but I'm currently getting no logs to explain why.
Has no effect |
@jcampbell05 Sorry for the confusion. No this functionality is not currently within this open sourced code base. This is why I have left the ticket open. This has been merged into the upstream repository within Amazon and the functionality will be made available upon the next synchronisation from Amazon's upstream repository. How are running your Lambda locally? |
We are currently using a Custom Container Image built on the Docker Hub Node image and followed the instructions in the documentation to download the emulator, install the Node runtime and run a ./entry.sh script The runtime is working but currently the emulator exits immediately with a code 0 which from the code looks like what it does whenever it needs to shutdown but it currently fails to log any contextual information on why it's shutting down. |
You can modify the E.g.
You can see this is something AWS SAM would do on your behalf[1] if you were using it. |
So I've added that flag and unfortunately it still just exits with a code 0 with no logs at all. I'll check out SAM but we already have an existing setup based around the serverless framework |
In the end it turns out I was forgetting to tell curl to follow redirects and it was downloading an empty binary which in turn was being executed without any errors by the container instead of a More details here: But please disregard my earlier comments. |
Is there a way to set the
loglevel
through an env var?This would be especially useful for lambda-docker.
We would like to be able to filter out a lot of noise and only see our app logs, at least during development.
The text was updated successfully, but these errors were encountered: