2026-05-03 04:59:14,268 - main - INFO - === Logging system initialized ===
2026-05-03 04:59:14,268 - main - INFO - Log file: logs/app_20260503_045914.log
2026-05-03 04:59:14,268 - main - INFO - Log level: INFO
2026-05-03 04:59:14,268 - main - INFO - Timestamp: 20260503_045914
2026-05-03 04:59:14,334 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 04:59:14,370 - main - INFO - Included router: routers.admin_users.router
2026-05-03 04:59:14,409 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 04:59:15,159 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 04:59:15,181 - main - INFO - Included router: routers.aihub.router
2026-05-03 04:59:15,222 - main - INFO - Included router: routers.api_hub.router
2026-05-03 04:59:15,236 - main - INFO - Included router: routers.audit_log.router
2026-05-03 04:59:15,246 - main - INFO - Included router: routers.auth.router
2026-05-03 04:59:15,260 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 04:59:15,299 - main - INFO - Included router: routers.carts.router
2026-05-03 04:59:15,346 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 04:59:15,387 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 04:59:15,535 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 04:59:15,548 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 04:59:15,600 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 04:59:15,647 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 04:59:15,695 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 04:59:15,729 - main - INFO - Included router: routers.contact.router
2026-05-03 04:59:15,772 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 04:59:15,819 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 04:59:15,822 - main - INFO - Included router: routers.health.router
2026-05-03 04:59:15,878 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 04:59:15,931 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 04:59:15,962 - main - INFO - Included router: routers.local_auth.router
2026-05-03 04:59:15,996 - main - INFO - Included router: routers.mfa.router
2026-05-03 04:59:16,039 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 04:59:16,089 - main - INFO - Included router: routers.notifications.router
2026-05-03 04:59:16,092 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 04:59:16,474 - main - INFO - Included router: routers.oauth.router
2026-05-03 04:59:16,526 - main - INFO - Included router: routers.order_items.router
2026-05-03 04:59:16,579 - main - INFO - Included router: routers.orders.router
2026-05-03 04:59:16,586 - main - INFO - Included router: routers.password_reset.router
2026-05-03 04:59:16,630 - main - INFO - Included router: routers.plans.router
2026-05-03 04:59:16,669 - main - INFO - Included router: routers.product_categories.router
2026-05-03 04:59:16,714 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 04:59:16,772 - main - INFO - Included router: routers.products.router
2026-05-03 04:59:16,802 - main - INFO - Included router: routers.role_management.router
2026-05-03 04:59:16,853 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 04:59:16,885 - main - INFO - Included router: routers.settings.router
2026-05-03 04:59:16,926 - main - INFO - Included router: routers.site_settings.router
2026-05-03 04:59:16,965 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 04:59:17,002 - main - INFO - Included router: routers.storage.router
2026-05-03 04:59:17,236 - main - INFO - Included router: routers.support_chat.router
2026-05-03 04:59:17,279 - main - INFO - Included router: routers.support_departments.router
2026-05-03 04:59:17,318 - main - INFO - Included router: routers.support_seats.router
2026-05-03 04:59:17,325 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 04:59:17,359 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 04:59:17,394 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 04:59:17,400 - main - INFO - Included router: routers.user.router
2026-05-03 04:59:17,440 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 04:59:17,472 - main - INFO - Included router: routers.user_roles.router
2026-05-03 04:59:17,560 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 04:59:17,569 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 04:59:17,586 - main - INFO - Included router: routers.whmcs.router
2026-05-03 04:59:17,647 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 04:59:17,684 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 04:59:17,685 - main - INFO - === Application startup initiated ===
2026-05-03 04:59:17,686 - services.database - INFO - Ignore creating tables
2026-05-03 04:59:17,686 - services.mock_data - INFO - Ignore initialize data
2026-05-03 04:59:17,686 - services.auth - INFO - Ignore initialize admin
2026-05-03 04:59:17,686 - main - INFO - === Application startup completed successfully ===
2026-05-03 04:59:20,008 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 04:59:20,009 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 04:59:20,009 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 04:59:20,009 - core.database - INFO - Starting database initialization...
2026-05-03 04:59:20,009 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 04:59:20,010 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 04:59:20,011 - core.database - INFO - Creating async database engine...
2026-05-03 04:59:20,011 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 04:59:20,076 - core.database - INFO - Database engine created successfully
2026-05-03 04:59:20,076 - core.database - INFO - Creating async session maker...
2026-05-03 04:59:20,076 - core.database - INFO - Async session maker created successfully
2026-05-03 04:59:20,076 - core.database - INFO - Database connection initialized successfully
2026-05-03 04:59:20,076 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 04:59:20,077 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 04:59:23,933 - core.database - INFO - Tables initialized successfully
2026-05-03 04:59:23,933 - core.database - DEBUG - [DB_OP] Create tables completed in 3.8569s
2026-05-03 04:59:23,997 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 04:59:23,997 - core.database - DEBUG - [DB_OP] Database session created successfully in 3.9886s
2026-05-03 04:59:24,473 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.4648s
2026-05-03 04:59:27,898 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 04:59:27,898 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 04:59:27,898 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 04:59:27,899 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 04:59:27,915 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 04:59:29,073 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.1750s
2026-05-03 04:59:30,920 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 04:59:30,921 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 04:59:30,921 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 04:59:31,310 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3901s
2026-05-03 04:59:33,550 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 04:59:33,550 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 04:59:33,551 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 04:59:34,254 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7039s
2026-05-03 04:59:36,692 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 04:59:36,692 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 04:59:36,692 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 04:59:37,284 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5920s
2026-05-03 04:59:46,690 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 04:59:46,690 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 04:59:46,690 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 04:59:47,152 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4623s
2026-05-03 04:59:49,534 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 04:59:49,534 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 04:59:49,534 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"admin_profile"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 04:59:50,050 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 04:59:50,051 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5179s
2026-05-03 05:00:01,619 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 05:00:01,686 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 05:00:01,686 - services.database - INFO - Database connections closed
2026-05-03 05:00:01,686 - services.database - DEBUG - [DB_OP] Database close completed in 0.0673s
