diff --git a/app/core/lifespan.py b/app/core/lifespan.py index ddff61bc..a1419d43 100644 --- a/app/core/lifespan.py +++ b/app/core/lifespan.py @@ -33,8 +33,8 @@ async def lifespan(app: FastAPI): app_logger.info("Starting up ecommerce API") # === REMOVED: Database table creation === - # Base.metadata.create_all(bind=engine) # ❌ Removed - handled by Alembic - # create_indexes() # ❌ Removed - handled by Alembic + # Base.metadata.create_all(bind=engine) # Removed - handled by Alembic + # create_indexes() # Removed - handled by Alembic # === KEPT: Application-level initialization === @@ -57,7 +57,7 @@ async def lifespan(app: FastAPI): # - Set up external service connections # - Load initial data (AFTER migrations) - logger.info("✅ Application startup completed") + logger.info("[OK] Application startup completed") yield @@ -118,12 +118,12 @@ def verify_startup_requirements(): # - Required environment variables if issues: - logger.error("❌ Startup verification failed:") + logger.error("[ERROR] Startup verification failed:") for issue in issues: logger.error(f" - {issue}") return False - logger.info("✅ Startup verification passed") + logger.info("[OK] Startup verification passed") return True # You can call this in your main.py if desired: