Closed cpomerantz closed 5 years ago
Is this fixed by https://github.com/hapijs/good/pull/585 ?
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.
Sorry to raise the dead on this issue but passing an error to
server.log
still results in losing the error. TheServerLog
class will not assign the error in the constructor like the other classes will and Hapicore.js
is assigning anError
type value toerror
instead ofdata
like this:If the
ServerLog
class can assign the error then things would work like the other classes. I know I could do this:and then handle this in a custom filter. But I feel like it is more consistent if the
ServerLog
just assigned the error. I can create a PR if you like.