sfbrigade / bats-server

Routed is an app to help ambulances direct non-critical patients to hospital emergency rooms with the most availability.
https://routedapp.org/
GNU Affero General Public License v3.0
18 stars 12 forks source link

Add `DATABASE_LOGGING` env variable to control sql logging #196

Closed fwextensions closed 2 years ago

fwextensions commented 2 years ago
francisli commented 2 years ago

What if, instead of a dev-specific env var, we make a more generic DATABASE_LOGGING env var, and use it on both dev and production, with appropriate fallbacks to true/false in the respective environments?

That might be useful for doing quick debugging on production as well...

fwextensions commented 2 years ago

Sounds good. It was only logging on dev, so limited it to that.

fwextensions commented 2 years ago

Updated to apply the DATABASE_LOGGING flag to every environment, with different defaults for each.