-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation about passing errors #948
Comments
What you listed is all of it! Thanks for offering to send a PR. What's not working with |
Submitted the PR. About |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi!
We should improve docs about when and where can/should one pass an
Error
to be correctly serialized, for example.error(new Error("test"))"
and.info({err: new Error("test")})
works but.warn(new Error("test"))
does not.Would a dev be so kind as to list out all the possible variations? So that I can submit a PR and make it clear in the docs that when does pino serialize errors and when it not.
The text was updated successfully, but these errors were encountered: