hapijs / good

hapi process monitoring
Other
525 stars 160 forks source link

Question: Getting data from Boom exception #617

Closed opravil-jan closed 5 years ago

opravil-jan commented 5 years ago

Hi,

It is possible to get boom data to good logging. What I have in mind is: in my code I throw exception: throw Boom.badRequest('Wrong customer id', { customerId: 15 })

and in logging(done by good) when I process the event "response" I got only in data.responsePayload :

{ error:"Not Found" message:"Wrong customer id" statusCode:404 }

Is it possible to get also the data such as customerId in my example?

Thank you Jan Opravil

hueniverse commented 5 years ago

Closing due to lack of activity.

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.