Update __init__.py

This commit is contained in:
VivianDee
2025-03-28 08:41:07 +01:00
parent 65efe0573a
commit 50647a566b
+1 -10
View File
@@ -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)