2026-05-02 19:55:30,938 - main - INFO - === Logging system initialized ===
2026-05-02 19:55:30,938 - main - INFO - Log file: logs/app_20260502_195530.log
2026-05-02 19:55:30,938 - main - INFO - Log level: INFO
2026-05-02 19:55:30,938 - main - INFO - Timestamp: 20260502_195530
2026-05-02 19:55:31,002 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-02 19:55:31,075 - main - INFO - Included router: routers.admin_users.router
2026-05-02 19:55:31,117 - main - INFO - Included router: routers.agent_availability.router
2026-05-02 19:55:31,867 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-02 19:55:31,888 - main - INFO - Included router: routers.aihub.router
2026-05-02 19:55:31,902 - main - INFO - Included router: routers.audit_log.router
2026-05-02 19:55:31,913 - main - INFO - Included router: routers.auth.router
2026-05-02 19:55:31,962 - main - INFO - Included router: routers.carts.router
2026-05-02 19:55:32,012 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-02 19:55:32,072 - main - INFO - Included router: routers.chat_attachments.router
2026-05-02 19:55:32,138 - main - INFO - Included router: routers.chat_branding.router
2026-05-02 19:55:32,156 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-02 19:55:32,309 - main - INFO - Included router: routers.chat_conversations.router
2026-05-02 19:55:32,360 - main - INFO - Included router: routers.chat_messages.router
2026-05-02 19:55:32,404 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-02 19:55:32,426 - main - INFO - Included router: routers.contact.router
2026-05-02 19:55:32,465 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-02 19:55:32,509 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-02 19:55:32,511 - main - INFO - Included router: routers.health.router
2026-05-02 19:55:32,558 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-02 19:55:32,608 - main - INFO - Included router: routers.kb_articles.router
2026-05-02 19:55:32,623 - main - INFO - Included router: routers.local_auth.router
2026-05-02 19:55:32,668 - main - INFO - Included router: routers.notification_preferences.router
2026-05-02 19:55:32,715 - main - INFO - Included router: routers.notifications.router
2026-05-02 19:55:32,719 - main - INFO - Included router: routers.notifications_extras.router
2026-05-02 19:55:32,806 - main - INFO - Included router: routers.oauth.router
2026-05-02 19:55:32,992 - main - INFO - Included router: routers.order_items.router
2026-05-02 19:55:33,085 - main - INFO - Included router: routers.orders.router
2026-05-02 19:55:33,091 - main - INFO - Included router: routers.password_reset.router
2026-05-02 19:55:33,138 - main - INFO - Included router: routers.plans.router
2026-05-02 19:55:33,185 - main - INFO - Included router: routers.product_categories.router
2026-05-02 19:55:33,232 - main - INFO - Included router: routers.product_reviews.router
2026-05-02 19:55:33,285 - main - INFO - Included router: routers.products.router
2026-05-02 19:55:33,310 - main - INFO - Included router: routers.role_management.router
2026-05-02 19:55:33,355 - main - INFO - Included router: routers.service_testimonials.router
2026-05-02 19:55:33,375 - main - INFO - Included router: routers.settings.router
2026-05-02 19:55:33,412 - main - INFO - Included router: routers.site_settings.router
2026-05-02 19:55:33,446 - main - INFO - Included router: routers.smtp_settings.router
2026-05-02 19:55:33,480 - main - INFO - Included router: routers.storage.router
2026-05-02 19:55:33,590 - main - INFO - Included router: routers.support_chat.router
2026-05-02 19:55:33,774 - main - INFO - Included router: routers.support_departments.router
2026-05-02 19:55:33,816 - main - INFO - Included router: routers.support_seats.router
2026-05-02 19:55:33,824 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-02 19:55:33,862 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-02 19:55:33,901 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-02 19:55:33,915 - main - INFO - Included router: routers.user.router
2026-05-02 19:55:33,958 - main - INFO - Included router: routers.user_profiles.router
2026-05-02 19:55:33,994 - main - INFO - Included router: routers.user_roles.router
2026-05-02 19:55:34,012 - main - INFO - Included router: routers.whmcs.router
2026-05-02 19:55:34,091 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-02 19:55:34,127 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-02 19:55:34,128 - main - INFO - === Application startup initiated ===
2026-05-02 19:55:34,128 - services.database - INFO - Ignore creating tables
2026-05-02 19:55:34,128 - services.mock_data - INFO - Ignore initialize data
2026-05-02 19:55:34,129 - services.auth - INFO - Ignore initialize admin
2026-05-02 19:55:34,129 - main - INFO - === Application startup completed successfully ===
2026-05-02 19:55:43,342 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 19:55:43,342 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-02 19:55:43,342 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-02 19:55:43,342 - core.database - INFO - Starting database initialization...
2026-05-02 19:55:43,342 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-02 19:55:43,342 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-02 19:55:43,343 - core.database - INFO - Creating async database engine...
2026-05-02 19:55:43,344 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-02 19:55:43,392 - core.database - INFO - Database engine created successfully
2026-05-02 19:55:43,392 - core.database - INFO - Creating async session maker...
2026-05-02 19:55:43,393 - core.database - INFO - Async session maker created successfully
2026-05-02 19:55:43,393 - core.database - INFO - Database connection initialized successfully
2026-05-02 19:55:43,393 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-02 19:55:43,393 - core.database - INFO - 🔧 Starting table creation...
2026-05-02 19:55:46,900 - core.database - INFO - Tables initialized successfully
2026-05-02 19:55:46,901 - core.database - DEBUG - [DB_OP] Create tables completed in 3.5078s
2026-05-02 19:55:46,964 - core.database - INFO - Lazy database initialization completed successfully
2026-05-02 19:55:46,965 - core.database - DEBUG - [DB_OP] Database session created successfully in 3.6234s
2026-05-02 19:55:47,438 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.0968s
2026-05-02 19:56:44,351 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 19:56:44,351 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-02 19:56:44,670 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3195s
2026-05-02 19:57:45,582 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 19:57:45,583 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-02 19:57:45,901 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3189s
2026-05-02 19:58:46,354 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 19:58:46,355 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-02 19:58:46,674 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3204s
2026-05-02 19:59:47,343 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 19:59:47,343 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-02 19:59:47,663 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3199s
2026-05-02 20:01:01,507 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-02 20:01:01,574 - core.database - INFO - Database connection closed and engine disposed
2026-05-02 20:01:01,574 - services.database - INFO - Database connections closed
2026-05-02 20:01:01,575 - services.database - DEBUG - [DB_OP] Database close completed in 0.0675s
