Skip to content

Can the run time printing the event to console be controlled on the user side? #33

Closed
@DaveParr

Description

@DaveParr

I believe (though I may be wrong) that

loginfo("Invoking function '%s' with parameters:\n%s", function_name, to_str(params))
is logging the entire event to cloudwatch.

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 of script.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions