-
Notifications
You must be signed in to change notification settings - Fork 53
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
Can the run time printing the event to console be controlled on the user side? #33
Comments
Hi @DaveParr, |
I've done the trivial easy part, i.e. the modify the logging level and PR is incoming. I'm still curious as to a method to control logging from |
Hi @DaveParr, |
Totally fine, thank's a lot for doing it :) |
I believe (though I may be wrong) that
aws-lambda-r-runtime/runtime/src/runtime.R
Line 31 in 0788f5d
I can see the value in doing this in many cases, but in the case where you may be passing a large data set in the body of the json, this makes the logs, and the in console test return, pretty impossible to use.
Is it possible to control this in your 'default' R runtime layers, without the user forking the project and rolling their own?
I've naively included
logging::loglevel("WARN")
at the start ofscript.R
, though this doesn't seem to make an impact.An ideal hypothetical for me would be to be able to specifically not log the body of json
An acceptable one would be to not capture logs from the runtime.R at all
Another acceptable one would be to control the log level of runtime.R, though this shouldn't impact the main script.R log level
I'm happy to do my best to look into this as well (I can see your project is picking up steam 🚂 !) but I might need a bit of guidance about where to start and how to implement.
The text was updated successfully, but these errors were encountered: