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
This bug is related only to current library or I've tested the same behaviour with the built-in logger and this is not a bug of NestJS.
What is the current behavior?
After setting a global prefix app.setGlobalPrefix('/api') in main.ts, nestjs-pino unexpectedly stops logging HTTP requests. However, the logger's other functionalities remain operational.
What is the expected behavior? nestjs-pino should consistently log HTTP requests even when a global prefix is applied.
Please provide minimal example repo, not code snippet. Without example repo this issue will be closed.
Start the application in development mode with npm run start:dev.
Make a request to localhost:3000/api using a browser or Postman.
Observe that no logs are shown in the terminal for the HTTP request.
Please mention other relevant information such as Node.js version and Operating System.
Node.js Version: v18.15.0
Operating System: MacOS Sonoma Version 14.2.1 (23C71)
The text was updated successfully, but these errors were encountered:
What is the current behavior?
After setting a global prefix
app.setGlobalPrefix('/api')
inmain.ts
,nestjs-pino
unexpectedly stops logging HTTP requests. However, the logger's other functionalities remain operational.What is the expected behavior?
nestjs-pino
should consistently log HTTP requests even when a global prefix is applied.Please provide minimal example repo, not code snippet. Without example repo this issue will be closed.
npm i
.npm run start:dev
.localhost:3000/api
using a browser or Postman.Please mention other relevant information such as Node.js version and Operating System.
Node.js Version: v18.15.0
Operating System: MacOS Sonoma Version 14.2.1 (23C71)
The text was updated successfully, but these errors were encountered: