Closed earlybirdeng closed 1 month ago
@earlybirdeng Could you clarify what INFO logs you are referring to? Do you mean your custom log?
I am testing with a nodejs lambda, I noticed that setting loglevel or not setting it will just send all logs (console.log, console.error, etc) to DD. I had expected if I set the loglevel to 'ERROR' that only the console.error logs I emit in my lambda will be sent.
Thanks for the clarification!
DD_LOG_LEVEL only controls the log level of Datadog layers, and doesn't affect the whether custom logs are forwarded to Datadog. All your custom logs logged by console.log
, console.error
etc are forward to Datadog.
I'm going to close this issue. Feel free to reopen it if you need further help.
Expected Behavior
When i set the logLevel to error in the plugin it should only emit error logs to data dog
Actual Behavior
All my INFO logs are being sent to datadog.
Steps to Reproduce the Problem
I even tried manually setting the env var
Specifications
Stacktrace