replace Unicode characters with ASCII alternatives
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user