2026-05-02 10:16:12,720 - main - INFO - === Logging system initialized ===
2026-05-02 10:16:12,720 - main - INFO - Log file: logs/app_20260502_101612.log
2026-05-02 10:16:12,720 - main - INFO - Log level: INFO
2026-05-02 10:16:12,720 - main - INFO - Timestamp: 20260502_101612
2026-05-02 10:16:14,378 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-02 10:16:14,589 - main - INFO - Included router: routers.agent_availability.router
2026-05-02 10:16:43,763 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-02 10:16:43,968 - main - INFO - Included router: routers.aihub.router
2026-05-02 10:16:44,317 - main - INFO - Included router: routers.auth.router
2026-05-02 10:16:44,426 - main - INFO - Included router: routers.carts.router
2026-05-02 10:16:44,548 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-02 10:16:44,640 - main - INFO - Included router: routers.chat_attachments.router
2026-05-02 10:16:44,813 - main - INFO - Included router: routers.chat_branding.router
2026-05-02 10:16:44,916 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-02 10:16:45,142 - main - INFO - Included router: routers.chat_conversations.router
2026-05-02 10:16:46,697 - main - INFO - Included router: routers.chat_messages.router
2026-05-02 10:16:46,860 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-02 10:16:47,059 - main - INFO - Included router: routers.contact.router
2026-05-02 10:16:47,272 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-02 10:16:48,277 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-02 10:16:48,297 - main - INFO - Included router: routers.health.router
2026-05-02 10:16:48,439 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-02 10:16:48,732 - main - INFO - Included router: routers.kb_articles.router
2026-05-02 10:16:48,933 - main - INFO - Included router: routers.notification_preferences.router
2026-05-02 10:16:49,162 - main - INFO - Included router: routers.notifications.router
2026-05-02 10:16:49,187 - main - INFO - Included router: routers.notifications_extras.router
2026-05-02 10:16:49,461 - main - INFO - Included router: routers.oauth.router
2026-05-02 10:16:49,725 - main - INFO - Included router: routers.order_items.router
2026-05-02 10:16:50,011 - main - INFO - Included router: routers.orders.router
2026-05-02 10:16:50,206 - main - INFO - Included router: routers.plans.router
2026-05-02 10:16:50,344 - main - INFO - Included router: routers.product_categories.router
2026-05-02 10:16:50,504 - main - INFO - Included router: routers.product_reviews.router
2026-05-02 10:16:50,615 - main - INFO - Included router: routers.products.router
2026-05-02 10:16:50,780 - main - INFO - Included router: routers.role_management.router
2026-05-02 10:16:51,014 - main - INFO - Included router: routers.service_testimonials.router
2026-05-02 10:16:51,150 - main - INFO - Included router: routers.settings.router
2026-05-02 10:16:52,375 - main - INFO - Included router: routers.site_settings.router
2026-05-02 10:16:52,702 - main - INFO - Included router: routers.smtp_settings.router
2026-05-02 10:16:52,889 - main - INFO - Included router: routers.storage.router
2026-05-02 10:16:53,074 - main - INFO - Included router: routers.support_chat.router
2026-05-02 10:16:53,191 - main - INFO - Included router: routers.support_departments.router
2026-05-02 10:16:53,553 - main - INFO - Included router: routers.support_seats.router
2026-05-02 10:16:53,620 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-02 10:16:53,787 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-02 10:16:54,042 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-02 10:16:54,108 - main - INFO - Included router: routers.user.router
2026-05-02 10:16:54,301 - main - INFO - Included router: routers.user_profiles.router
2026-05-02 10:16:54,431 - main - INFO - Included router: routers.user_roles.router
2026-05-02 10:16:54,450 - main - INFO - Included router: routers.whmcs.router
2026-05-02 10:16:54,539 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-02 10:16:54,622 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-02 10:16:54,624 - main - INFO - === Application startup initiated ===
2026-05-02 10:16:54,624 - services.database - INFO - Ignore creating tables
2026-05-02 10:16:54,624 - services.mock_data - INFO - Ignore initialize data
2026-05-02 10:16:54,624 - services.auth - INFO - Ignore initialize admin
2026-05-02 10:16:54,624 - main - INFO - === Application startup completed successfully ===
2026-05-02 10:19:38,722 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 10:19:38,723 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-02 10:19:38,723 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-02 10:19:38,723 - core.database - INFO - Starting database initialization...
2026-05-02 10:19:38,724 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-02 10:19:38,724 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-02 10:19:38,726 - core.database - INFO - Creating async database engine...
2026-05-02 10:19:38,727 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-02 10:19:38,794 - core.database - INFO - Database engine created successfully
2026-05-02 10:19:38,794 - core.database - INFO - Creating async session maker...
2026-05-02 10:19:38,795 - core.database - INFO - Async session maker created successfully
2026-05-02 10:19:38,795 - core.database - INFO - Database connection initialized successfully
2026-05-02 10:19:38,795 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-02 10:19:38,795 - core.database - INFO - 🔧 Starting table creation...
2026-05-02 10:19:38,828 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-05-02 10:19:38,880 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 10:19:38,881 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0010s
2026-05-02 10:19:38,882 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 10:19:38,886 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 10:19:38,887 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-02 10:19:38,887 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 10:19:40,301 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 10:19:40,301 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.4209s
2026-05-02 10:19:40,302 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 10:19:40,302 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.4161s
2026-05-02 10:19:42,234 - core.database - INFO - Tables initialized successfully
2026-05-02 10:19:42,235 - core.database - DEBUG - [DB_OP] Create tables completed in 3.4399s
2026-05-02 10:19:42,298 - core.database - INFO - Lazy database initialization completed successfully
2026-05-02 10:19:42,299 - core.database - DEBUG - [DB_OP] Database session created successfully in 3.5767s
2026-05-02 10:19:42,749 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.0261s
2026-05-02 10:20:13,252 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-02 10:20:13,454 - core.database - INFO - Database connection closed and engine disposed
2026-05-02 10:20:13,454 - services.database - INFO - Database connections closed
2026-05-02 10:20:13,455 - services.database - DEBUG - [DB_OP] Database close completed in 0.2025s
