Skip to content
#

pino

Here are 113 public repositories matching this topic...

jsumners
jsumners commented May 11, 2022

I'm trying to understand how a worker thread is passing an error back to the main Pino process through the worker message bus. In the code below there is a transport with an internal EventEmitter that emits an unhandled error event. Yet, somehow, we can attach an .on('error') listener to the transport and handle that emitted event. How does this work?

package.json
ShivamJoker
ShivamJoker commented Jun 11, 2021

I am getting this while using it with esm package

$ nodemon -r esm -e yaml,js,json index | pino-pg --connectionUrl postgres://xxx:xxx@host.com:5432/easycollab --table test.logs --column log

SyntaxError: Unexpected token  in JSON at position 0
    at JSON.parse (<anonymous>)
    at /Users/shivam/real-dev/easy-collab-api/node_modules/pino-pg/dist/src/index.js:36:100
    at Generator.ne
bug good first issue

Improve this page

Add a description, image, and links to the pino topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pino topic, visit your repo's landing page and select "manage topics."

Learn more