me-ventures / microservice-toolkit

MIT License
3 stars 1 forks source link

better default handlers for unhandled exception/rejection #25

Closed EvaLok closed 6 years ago

EvaLok commented 6 years ago

resolves #21

EvaLok commented 6 years ago

@MaikelH curious as to whether you think we should also process.exit by default on handled rejection.

also - the stack contains newline characters; will this be a problem for our error logging / is it an easy way to make that parse in a decent manner?

MaikelH commented 6 years ago

I am not sure if exiting is the right way to go. I can be a non-critical error.

Maybe we can make it a json field or something. That will help when looking it up in kibana.