fix: drop FLASK_DEBUG in production detection logic
This commit is contained in:
@@ -15,8 +15,8 @@ from .models import db
|
|||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
# Determine if we're in production
|
# Determine if we're in production
|
||||||
_is_production = os.getenv(
|
FLASK_ENV = os.getenv('FLASK_ENV', 'development').lower()
|
||||||
'FLASK_DEBUG', '').lower() not in ('1', 'true', 'yes')
|
_is_production = FLASK_ENV == 'production'
|
||||||
|
|
||||||
|
|
||||||
def setup_logging(app: Flask) -> None:
|
def setup_logging(app: Flask) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user