Hi team
We have a requirement to log all requests including headers, body, url, query and the response including body and headers.
Our application has some gurads and interceptor
Also we are using nestjs + express adaptor.
So we developed a middleware and we are able to achieve what we want.
Now because of performance issue we want to use fastify adapter, the issue is in middleware because of how middie is handling the middlewares we don't have access to the body of the request.
We can do the same using interceptors but issue is the requests that are rejected in guards don't reach to interceptor.
I opened a bug in nestjs but seems this is what it is. https://github.com/nestjs/nest/issues/10466
My question is how we can develop such thing to log all req and res including the req that are rejected in guards?
Is there an existing issue for this? I have searched the existing issues Current behavior Value of request.body in undefined in middleware when using fastify Minimum reproduction code https://githu...