You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We found a situation where a some errors we were logging had the output contain "toString":[object Undefined]. This isn't valid JSON and was causing our log aggregator parser to break.
In playing with it, I am able to reproduce this by:
constpino=require('pino')()consterr=newError('Blah')err.toString=()=>undefinedpino.error(err,'Something bad happened.')
The full output then is this, which is not valid JSON.
Similar to #456
We found a situation where a some errors we were logging had the output contain
"toString":[object Undefined]
. This isn't valid JSON and was causing our log aggregator parser to break.In playing with it, I am able to reproduce this by:
The full output then is this, which is not valid JSON.
I'm guessing this isn't exactly how it's produced, but this is a way to reproduce the same situation.
The text was updated successfully, but these errors were encountered: