# Path: drift/flaskfactory.py
# def drift_app(app=None):
#     try:
#         return _drift_app(app=app)
#     except Exception:
#         log.exception("Flask app creation failed.")


import logging
import os
from drift.flaskfactory import drift_app
"""
Flask local development app.
Assigns a default tenant name 'developer'.
These setting can be overridden with env 'DRIFT_DEFAULT_TENANT'
"""


# Default tenant for devapp is 'developer'
tenant_name = os.environ.setdefault('DRIFT_DEFAULT_TENANT', 'developer')


# Path: drift/flaskfactory.py
# def drift_app(app=None):
#     try:
#         return _drift_app(app=app)
#     except Exception:
#         log.exception("Flask app creation failed.")


# Path: drift/contrib/flask/devapp.py
import logging
import os
from drift.flaskfactory import drift_app

"""
Flask local development app.
Assigns a default tenant name 'developer'.
These setting can be overridden with env 'DRIFT_DEFAULT_TENANT'
"""


# Default tenant for devapp is 'developer'
tenant_name = os.environ.setdefault('DRIFT_DEFAULT_TENANT', 'developer')


app = drift_app()