Closed webhype closed 2 years ago
Closing in favor of https://github.com/pinojs/pino-tee/issues/89.
Upon further research, I think this issue should remain open here and the one on pino-tee one should be closed.
As you can see from the above code, the same problem happens regardless whether you call node node_modules/pino-tee/tee.js
or you call the Linux / Mac OS command tee
. So I feel the problem is really with pino, not with pino-tee.
We are actually doing nothing with the stream, we just call .write()
to it.
I'll take a look tomorrow
It's a node core bug: https://github.com/nodejs/node/issues/42630
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.
Expected result: 1000 - 3000 lines in the log file Actual result: 100 - 500 lines, seems random when it cuts off OS: Mac OS or Linux Code to reproduce, closely resembling pino-tee ESM examples at: https://github.com/pinojs/pino-tee/pull/18/files#diff-98328e3b3ad8e1560c1bbe15b7e4de95e8724b7b542d64c0a752116dd8d8c973