question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crashing with pino 5.x and prettyPrint

See original GitHub issue

Hello,

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:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mcollinacommented, Aug 30, 2018

I’ve released the fix as sonic-boom@0.6.1.

0reactions
brandonburkettcommented, Aug 30, 2018

So far so good (using https://github.com/mcollina/sonic-boom/pull/12 in node_modules locally).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found