kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
895 stars 237 forks source link

debug logs show multiple route setter #697

Open adantoscano opened 3 years ago

adantoscano commented 3 years ago

I'm using express-openapi and i'm getting the following log

Thu, 03 Dec 2020 12:34:40 GMT express:router:route new '/v1/users'
Thu, 03 Dec 2020 12:34:40 GMT express:router:layer new '/v1/users'
Thu, 03 Dec 2020 12:34:40 GMT express:router:route get '/v1/users'
Thu, 03 Dec 2020 12:34:40 GMT express:router:layer new '/'
Thu, 03 Dec 2020 12:34:40 GMT express:router:route get '/v1/users'
Thu, 03 Dec 2020 12:34:40 GMT express:router:layer new '/'
Thu, 03 Dec 2020 12:34:40 GMT express:router:route get '/v1/users'
Thu, 03 Dec 2020 12:34:40 GMT express:router:layer new '/'

route and layer repeat the same through all routes. Is this a normal behavior?