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 are using pino for the browser. Looks like the serializer for Error instances does not use the provided messageKey when serializing the error. The property from the error object are also not wrapped in an err object, like stated here: https://getpino.io/#/docs/api?id=errors
pino({browser: {asObject: true,serialize: true},messageKey: 'message'}).error(newError('Something went wrong'));
Output in Node:
{"level":50,"time":1739977190475,"err":{"type":"Error","message":"Something went wrong","stack":"Error: Something went wrong ..."},"message":"Something went wrong"}
Output in the browser:
{"time":1739977722493,"level":50,"type":"Error","msg":"Something went wrong","stack":"Error: Something went wrong..."}
Are we doing something wrong?
The text was updated successfully, but these errors were encountered:
Hey there,
we are using pino for the browser. Looks like the serializer for
Error
instances does not use the providedmessageKey
when serializing the error. The property from the error object are also not wrapped in anerr
object, like stated here: https://getpino.io/#/docs/api?id=errorsOutput in Node:
Output in the browser:
Are we doing something wrong?
The text was updated successfully, but these errors were encountered: