Skip to content
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

error.cause is not logged #518

Open
AlessioGr opened this issue Jun 28, 2024 · 1 comment
Open

error.cause is not logged #518

AlessioGr opened this issue Jun 28, 2024 · 1 comment

Comments

@AlessioGr
Copy link

I am adding a cause to my error, but the error cause is not showing.

I did not find any pino-pretty option which allows me to customize it to include the error.cause. messageFormat only contains the raw error msg as an argument, and a custom prettifier for err and error is not run at all.

@jsumners
Copy link
Member

Please provide a minimal reproducible example. Doing so will help us diagnose your issue. It should be the bare minimum code needed to trigger the issue, and easily runnable without any changes or extra code.

You may use a GitHub repository to host the code if it is too much to fit in a code block (or two).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants