We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now it only pass ctx.req down to pino http.
ctx.req
Things like ctx.request.body are left out.
ctx.request.body
Was that intentional?
The text was updated successfully, but these errors were encountered:
I know it's not the perfect way, but I use the following code to solve this problem.
app.use(async (ctx, next) => { ctx.req.body = ctx.request.body; await next(); }); app.use( logger({ serializers: { err: pino.stdSerializers.err, req: (req) => { req.body = req.raw.body; return req; }, res: pino.stdSerializers.res, }, }), );
Sorry, something went wrong.
No branches or pull requests
Right now it only pass
ctx.req
down to pino http.Things like
ctx.request.body
are left out.Was that intentional?
The text was updated successfully, but these errors were encountered: