App crashing with pino 5.x and prettyPrint
See original GitHub issueHello,
I have a lot of large JSON objects being logged to stdout and I have been getting the following inconsistently:
Error: EAGAIN: resource temporarily unavailable, write
Emitted 'error' event at:
at SonicBoom.release
at FSReqWrap.wrapper [as oncomplete] (fs.js:500:5)
[nodemon] app crashed - waiting for file changes before starting...
Assuming it is related to pino 5.x update the sonic boom streaming switch?
Here is my plugin config:
export default {
plugin: Pino, // this is hapi-pino
options: {
name: 'api',
prettyPrint: config.env !== 'production',
level: config.logger.level,
// logPayload: config.env !== 'production',
logRouteTags: true,
mergeHapiLogData: false,
ignorePaths: ['/api/health'],
},
};
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
0 - Stack Overflow
[PINODEP008] PinoWarning: prettyPrint is deprecated, look at https://github.com/pinojs/pino-pretty for alternatives. What to do? App is crashing
Read more >Node Logging Basics - The Ultimate Guide To Logging - Loggly
Pino is a fast JSON logger with a command line interface similar to Bunyan. It decouples transports, and has a sane default configuration....
Read more >[Bug] unhandledException TypeError: segment.transaction ...
newrelic causes unhandledException and crashes the process TypeError: segment.transaction.isActive is not a function at Shim.
Read more >Verdaccio 5 migration guidelines | Verdaccio
Old configuration won't crash the application, rather will display a deprecation warning and will use the very first option in your configuration as...
Read more >Redwood Logging - Ideas? - #22 by realStandal
FYI I have started work on a PoC using pino as the default logger. ... Any problem ended with a crash was trivial...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve released the fix as sonic-boom@0.6.1.
So far so good (using https://github.com/mcollina/sonic-boom/pull/12 in node_modules locally).