-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport 42 to v2.x.x #51
Conversation
Is it not possible to use the |
I would prefer if it uses |
Good point will do tomorrow |
Ah, there is now a package for the wrapping 👍 @davidmarkclements do you have time to apply this to 4.x.x as well? Would make sense to keep the implementation in 2.x.x and 4.x.x as close as possible imho. |
so here's the thing, we've gotten ourselves into a bit of a conflated mess here with regards to pino-std-serializers and hapi-pino – at some point there's been a sort of co-evolution and concepts have been shared between them which has lead to a corruption of terms Specifically I'm referring to this: https://github.com/pinojs/hapi-pino/pull/51/files#diff-168726dbe96b3ce427e7fedce31bb0bcR208 vs https://github.com/pinojs/pino-std-serializers/blob/master/lib/req.js#L64 This makes In Hapi the In This divergence has been going on for a while, so one way for me to use
This will allow me to integrate, however it still leaves us in this situation where |
I did ask if it is possible to use it not that it must be used. I think I could live with:
// Accommodate frameworks that attach their own `raw` object
_req.raw = req.raw || req
|
I'd be happy with option 1. |
ok... phew.
I can "frontport" once we we're happy with this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
we'll need to also update the 4 branch. |
cc @benib