-
Notifications
You must be signed in to change notification settings - Fork 893
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
Pino will not print logs when the event loop is blocked, but console.log will #1801
Comments
Ok, I figured out the issue. When the event-loop is almost blocked because there's an infinite while-loop, pino will not print anything. The problem is -- this is quite bad, because it is precisely when the event loop is blocked that I don't want my logs to go silent. I'd rather sacrifice lots of performance, then have pino not prevent logs when the event loop is blocked. Example: (will add) |
Regarding Regarding transports, I actually think we can support this behavior by allowing users to set This is generically a tradeoff between various concerns and it really depends on your application. The defaults here are generically the best tradeoff we could came up with. |
@mcollina Since the PR is now merged, should this be closed ? |
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. |
I'm running into an odd error where Pino is not printing logs unless an exception is thrown.
Here's my config:
What could be be going on? Is there some sort of buffering?
The text was updated successfully, but these errors were encountered: