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.
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.
Hapi has some logic that decides whether to include
error
ordata
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