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

hanging process on uncaughtException #5

Closed
adrai opened this issue Aug 10, 2016 · 2 comments
Closed

hanging process on uncaughtException #5

adrai opened this issue Aug 10, 2016 · 2 comments

Comments

@adrai
Copy link

adrai commented Aug 10, 2016

var pino = require('pino')()

pino.info('hello world');

setTimeout(() => {
  throw new Error('ohhhhh');
}, 2000);

// process.on('uncaughtException', (err) => {
//   pino.fatal({ err });
//   process.exit(1)
// });

pino:

node testPino.js | pino
[2016-08-10T09:06:22.675Z] INFO (6869 on adrianos-mbp.dom01.kaba.grp): hello world
[2016-08-10T09:06:24.679Z] FATAL (6869 on adrianos-mbp.dom01.kaba.grp):
    err: {}

pino-socket:

this hangs forever (or until ^C)

node testPino.js | pino-socket -a localhost -p 1234 -m tcp -ne
jsumners added a commit that referenced this issue Aug 10, 2016
@jsumners
Copy link
Member

Try out version 0.4.1.

@adrai
Copy link
Author

adrai commented Aug 10, 2016

thx

@adrai adrai closed this as completed Aug 10, 2016
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