hapijs / good

hapi process monitoring
Other
525 stars 160 forks source link

Add support for request event error field #581

Closed pthrasher closed 6 years ago

pthrasher commented 6 years ago

Hapi has some logic that decides whether to include error or data on the request event object. It does this by simply checking if the log data is an instance of an Error object. This adds support for propagating that field properly. If you pass an error object right now as data, Good is completely unaware of it and simply drops it.

https://github.com/hapijs/hapi/blob/master/lib/core.js#L556-L558

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.