You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Logger middleware called more than once per request
Expected behavior
Middleware is called once for a request
Minimal reproduction of the problem with instructions
Using the latest cats sample, with the cats.module.ts applying the logger middleware
Note that if I use .forRoutes('/cats') (instead of the controller class), or apply the middleware in main.ts with app.use(...), I get the expected behaviour.
Environment
Nest version: 5.0.1
For Tooling issues:
- Node version: 8.9.4
- Platform: Mac
Others:
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
Logger middleware called more than once per request
Expected behavior
Middleware is called once for a request
Minimal reproduction of the problem with instructions
Using the latest cats sample, with the
cats.module.ts
applying the logger middlewareAfter
curl http://localhost:3000/cats/12
the server outputsNote that if I use
.forRoutes('/cats')
(instead of the controller class), or apply the middleware in main.ts withapp.use(...)
, I get the expected behaviour.Environment
The text was updated successfully, but these errors were encountered: