airqo-platform / airqo-platform/AirQo-api

Refactor suggestion for configuring Mongoose debug mode

Offen
#3,673 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @Baalmart Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
26
Forks
24
Ø Merge
5 Std. 36 Min.
Gemergte PRs (30 T.)
81

Beschreibung

In the current setup for Mongoose debug mode in `src/auth-service/models/Maintenance.js`, the code uses `process.env.NODE_ENV !== "production"`. It is suggested to introduce a dedicated environment variable for more flexible control of debug mode.

See discussion in PR #3666: https://github.com/airqo-platform/AirQo-api/pull/3666 at comment: https://github.com/airqo-platform/AirQo-api/pull/3666#discussion_r1803344337.

Requested by @Baalmart.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.