-
Notifications
You must be signed in to change notification settings - Fork 883
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
customLevels brake logging with transports #1677
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
Ok, i will try. |
This could be fixed by specifying all levels in the options for the transport. For example:
I made a PR here to allow it to work without specifying default levels, but this can be ignored if this isn't expected behaviour. |
I updated the pr that closes this issue. It probably has to manually be closed. Sorry didn't initially include it |
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. |
Hello!
pino 8.11.0
When customLevels is defined and transport level is equal to custom level, logging does not work, but no exceptions occur.
This works fine:
This does not work:
Problem is not in pino-pretty. Another transports behave similarly.
If I add cusom level into pino levels.js, all works fine:
The text was updated successfully, but these errors were encountered: