Update __init__.py
This commit is contained in:
+1
-10
@@ -35,16 +35,7 @@ def create_app():
|
||||
|
||||
# Error Handlers
|
||||
register_error_handlers(app)
|
||||
|
||||
import logging
|
||||
from sqlalchemy import create_engine
|
||||
|
||||
# Set up logging
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Log the database URI
|
||||
logger.info(f"Database URI: {app.config['SQLALCHEMY_DATABASE_URI']}")
|
||||
|
||||
|
||||
# Database and Migrations
|
||||
db.init_app(app)
|
||||
|
||||
Reference in New Issue
Block a user