2026-04-29 19:33:56,715 - main - INFO - === Logging system initialized ===
2026-04-29 19:33:56,715 - main - INFO - Log file: logs/app_20260429_193356.log
2026-04-29 19:33:56,715 - main - INFO - Log level: INFO
2026-04-29 19:33:56,715 - main - INFO - Timestamp: 20260429_193356
2026-04-29 19:33:57,854 - main - INFO - Included router: routers.aihub.router
2026-04-29 19:33:57,874 - main - INFO - Included router: routers.auth.router
2026-04-29 19:33:57,901 - main - INFO - Included router: routers.contact.router
2026-04-29 19:33:57,905 - main - INFO - Included router: routers.health.router
2026-04-29 19:33:57,967 - main - INFO - Included router: routers.plans.router
2026-04-29 19:33:57,990 - main - INFO - Included router: routers.settings.router
2026-04-29 19:33:58,064 - main - INFO - Included router: routers.smtp_settings.router
2026-04-29 19:33:58,103 - main - INFO - Included router: routers.storage.router
2026-04-29 19:33:58,115 - main - INFO - Included router: routers.user.router
2026-04-29 19:33:58,163 - main - INFO - Included router: routers.user_profiles.router
2026-04-29 19:33:58,227 - main - WARNING - Failed to import module 'routers.whmcs': name 'Field' is not defined
2026-04-29 19:33:58,228 - main - INFO - === Application startup initiated ===
2026-04-29 19:33:58,228 - services.database - INFO - Ignore creating tables
2026-04-29 19:33:58,228 - services.mock_data - INFO - Ignore initialize data
2026-04-29 19:33:58,228 - services.auth - INFO - Ignore initialize admin
2026-04-29 19:33:58,229 - main - INFO - === Application startup completed successfully ===
2026-04-29 19:34:19,589 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-29 19:34:19,590 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-29 19:34:19,590 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-29 19:34:19,590 - core.database - INFO - Starting database initialization...
2026-04-29 19:34:19,590 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-29 19:34:19,590 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-29 19:34:19,591 - core.database - INFO - Creating async database engine...
2026-04-29 19:34:19,592 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-29 19:34:19,654 - core.database - INFO - Database engine created successfully
2026-04-29 19:34:19,654 - core.database - INFO - Creating async session maker...
2026-04-29 19:34:19,654 - core.database - INFO - Async session maker created successfully
2026-04-29 19:34:19,654 - core.database - INFO - Database connection initialized successfully
2026-04-29 19:34:19,654 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-29 19:34:19,654 - core.database - INFO - 🔧 Starting table creation...
2026-04-29 19:34:21,221 - core.database - INFO - Tables initialized successfully
2026-04-29 19:34:21,222 - core.database - DEBUG - [DB_OP] Create tables completed in 1.5673s
2026-04-29 19:34:21,286 - core.database - INFO - Lazy database initialization completed successfully
2026-04-29 19:34:21,286 - core.database - DEBUG - [DB_OP] Database session created successfully in 1.6972s
2026-04-29 19:34:21,287 - routers.plans - DEBUG - Querying planss: query={"service_type":"bizmail360","is_active":true}, sort=sort_order, skip=0, limit=20, fields=None
2026-04-29 19:34:21,872 - routers.plans - DEBUG - Found 0 planss
2026-04-29 19:34:21,873 - core.database - DEBUG - [DB_OP] Database session cleanup after 2.2834s
2026-04-29 19:34:22,129 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-29 19:34:22,130 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-29 19:34:22,130 - routers.plans - DEBUG - Querying planss: query={"service_type":"bizmail360"}, sort=sort_order, skip=0, limit=20, fields=None
2026-04-29 19:34:22,639 - routers.plans - DEBUG - Found 0 planss
2026-04-29 19:34:22,640 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5104s
2026-04-29 19:34:22,899 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-29 19:34:22,900 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-04-29 19:34:22,900 - routers.plans - DEBUG - Querying planss: query=None, sort=None, skip=0, limit=50, fields=None
2026-04-29 19:34:23,480 - routers.plans - DEBUG - Found 16 planss
2026-04-29 19:34:23,481 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5821s
2026-04-29 19:34:33,131 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-29 19:34:33,197 - core.database - INFO - Database connection closed and engine disposed
2026-04-29 19:34:33,198 - services.database - INFO - Database connections closed
2026-04-29 19:34:33,198 - services.database - DEBUG - [DB_OP] Database close completed in 0.0670s
