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