slanatech / swagger-stats

API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
https://swaggerstats.io/
MIT License
886 stars 136 forks source link

DEBUG env is being overridden by `lib/swsElasticEmitter.js` #271

Closed shubhamp-sf closed 1 year ago

shubhamp-sf commented 1 year ago

After the latest release of v0.99.6 the DEBUG env var is being overridden. (added in this commit https://github.com/slanatech/swagger-stats/commit/dbc29e73cba343d158a989ff89203013ff0c418d.)

Resulting in all the logs being shown for the apps using debug package, regardless of what's set in their own env.

I don't think this explicit override is needed here. Please remove it.