Closed knolleary closed 10 months ago
This is specifically console.log outputing a JSON object, a normal string works fine
Problem is here:
Where we just try and JSON parse the line (as we are using the custom logger plug in to output JSON), so we need to check if the input is actually from the NR logger or from something else.
Verified from local device to staging
Current Behavior
A Function node can use console.log to write directly to stdout. This can break the log parsing to stops logs being streamed to the platform.
Expected Behavior
console.log not to break the logs
Steps To Reproduce
Add console.log to a Function node running on a device
Environment