2026-05-03 08:32:49,144 - main - INFO - === Logging system initialized ===
2026-05-03 08:32:49,144 - main - INFO - Log file: logs/app_20260503_083249.log
2026-05-03 08:32:49,144 - main - INFO - Log level: INFO
2026-05-03 08:32:49,144 - main - INFO - Timestamp: 20260503_083249
2026-05-03 08:32:49,211 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 08:32:49,249 - main - INFO - Included router: routers.admin_users.router
2026-05-03 08:32:49,288 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 08:32:50,113 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 08:32:50,143 - main - INFO - Included router: routers.aihub.router
2026-05-03 08:32:50,194 - main - INFO - Included router: routers.api_hub.router
2026-05-03 08:32:50,213 - main - INFO - Included router: routers.audit_log.router
2026-05-03 08:32:50,225 - main - INFO - Included router: routers.auth.router
2026-05-03 08:32:50,355 - main - INFO - Included router: routers.bizmail_admin.router
2026-05-03 08:32:50,425 - main - INFO - Included router: routers.bizmail_client.router
2026-05-03 08:32:50,429 - main - INFO - Included router: routers.bizmail_public.router
2026-05-03 08:32:50,448 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 08:32:50,560 - main - INFO - Included router: routers.carts.router
2026-05-03 08:32:50,624 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 08:32:50,672 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 08:32:50,749 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 08:32:50,766 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 08:32:50,821 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 08:32:50,864 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 08:32:50,908 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 08:32:50,931 - main - INFO - Included router: routers.contact.router
2026-05-03 08:32:50,971 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 08:32:51,060 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 08:32:51,062 - main - INFO - Included router: routers.health.router
2026-05-03 08:32:51,115 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 08:32:51,328 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 08:32:51,375 - main - INFO - Included router: routers.local_auth.router
2026-05-03 08:32:51,413 - main - INFO - Included router: routers.mfa.router
2026-05-03 08:32:51,465 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 08:32:51,518 - main - INFO - Included router: routers.notifications.router
2026-05-03 08:32:51,522 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 08:32:51,608 - main - INFO - Included router: routers.oauth.router
2026-05-03 08:32:51,656 - main - INFO - Included router: routers.order_items.router
2026-05-03 08:32:51,715 - main - INFO - Included router: routers.orders.router
2026-05-03 08:32:51,725 - main - INFO - Included router: routers.password_reset.router
2026-05-03 08:32:51,781 - main - INFO - Included router: routers.plans.router
2026-05-03 08:32:51,834 - main - INFO - Included router: routers.presales_messages.router
2026-05-03 08:32:51,880 - main - INFO - Included router: routers.product_categories.router
2026-05-03 08:32:51,938 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 08:32:52,006 - main - INFO - Included router: routers.products.router
2026-05-03 08:32:52,516 - main - INFO - Included router: routers.role_management.router
2026-05-03 08:32:52,585 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 08:32:52,611 - main - INFO - Included router: routers.settings.router
2026-05-03 08:32:52,656 - main - INFO - Included router: routers.site_settings.router
2026-05-03 08:32:52,698 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 08:32:52,745 - main - INFO - Included router: routers.storage.router
2026-05-03 08:32:52,857 - main - INFO - Included router: routers.support_chat.router
2026-05-03 08:32:52,909 - main - INFO - Included router: routers.support_departments.router
2026-05-03 08:32:52,954 - main - INFO - Included router: routers.support_seats.router
2026-05-03 08:32:52,964 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 08:32:53,003 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 08:32:53,070 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 08:32:53,230 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-03 08:32:53,296 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-03 08:32:53,304 - main - INFO - Included router: routers.user.router
2026-05-03 08:32:53,350 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 08:32:53,588 - main - INFO - Included router: routers.user_roles.router
2026-05-03 08:32:53,692 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 08:32:53,701 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 08:32:53,760 - main - INFO - Included router: routers.whatsapp_client.router
2026-05-03 08:32:53,767 - main - INFO - Included router: routers.whatsapp_client_ws.router
2026-05-03 08:32:53,790 - main - INFO - Included router: routers.whmcs.router
2026-05-03 08:32:53,855 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 08:32:53,892 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 08:32:53,893 - main - INFO - === Application startup initiated ===
2026-05-03 08:32:53,893 - services.database - INFO - Ignore creating tables
2026-05-03 08:32:53,894 - services.mock_data - INFO - Ignore initialize data
2026-05-03 08:32:53,894 - services.auth - INFO - Ignore initialize admin
2026-05-03 08:32:53,894 - main - INFO - === Application startup completed successfully ===
2026-05-03 08:32:53,899 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 08:32:53,899 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 08:32:53,900 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 08:32:53,900 - core.database - INFO - Starting database initialization...
2026-05-03 08:32:53,900 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 08:32:53,900 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 08:32:53,900 - core.database - INFO - Creating async database engine...
2026-05-03 08:32:53,901 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 08:32:53,946 - core.database - INFO - Database engine created successfully
2026-05-03 08:32:53,946 - core.database - INFO - Creating async session maker...
2026-05-03 08:32:53,946 - core.database - INFO - Async session maker created successfully
2026-05-03 08:32:53,946 - core.database - INFO - Database connection initialized successfully
2026-05-03 08:32:53,946 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 08:32:53,946 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 08:32:59,661 - core.database - INFO - Tables initialized successfully
2026-05-03 08:32:59,661 - core.database - DEBUG - [DB_OP] Create tables completed in 5.7152s
2026-05-03 08:32:59,725 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 08:32:59,726 - core.database - DEBUG - [DB_OP] Database session created successfully in 5.8267s
2026-05-03 08:33:00,226 - core.database - DEBUG - [DB_OP] Database session cleanup after 6.3262s
2026-05-03 08:33:12,334 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 08:33:12,402 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 08:33:12,402 - services.database - INFO - Database connections closed
2026-05-03 08:33:12,402 - services.database - DEBUG - [DB_OP] Database close completed in 0.0684s
