2026-05-04 08:20:29,744 - main - INFO - === Logging system initialized ===
2026-05-04 08:20:29,744 - main - INFO - Log file: logs/app_20260504_082029.log
2026-05-04 08:20:29,744 - main - INFO - Log level: INFO
2026-05-04 08:20:29,744 - main - INFO - Timestamp: 20260504_082029
2026-05-04 08:20:29,767 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-04 08:20:29,785 - main - INFO - Included router: routers.admin_users.router
2026-05-04 08:20:29,806 - main - INFO - Included router: routers.agent_availability.router
2026-05-04 08:20:30,025 - main - WARNING - Failed to import module 'routers.ai_ticket_summary': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 08:20:30,026 - main - WARNING - Failed to import module 'routers.aihub': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 08:20:30,048 - main - INFO - Included router: routers.api_hub.router
2026-05-04 08:20:30,054 - main - INFO - Included router: routers.audit_log.router
2026-05-04 08:20:30,059 - main - INFO - Included router: routers.auth.router
2026-05-04 08:20:30,107 - main - INFO - Included router: routers.bizmail_admin.router
2026-05-04 08:20:30,144 - main - INFO - Included router: routers.bizmail_client.router
2026-05-04 08:20:30,146 - main - INFO - Included router: routers.bizmail_public.router
2026-05-04 08:20:30,204 - main - INFO - Included router: routers.cache_settings.router
2026-05-04 08:20:30,225 - main - INFO - Included router: routers.carts.router
2026-05-04 08:20:30,230 - main - INFO - Included router: routers.catalog_admin.router
2026-05-04 08:20:30,254 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-04 08:20:30,275 - main - INFO - Included router: routers.chat_attachments.router
2026-05-04 08:20:30,307 - main - INFO - Included router: routers.chat_branding.router
2026-05-04 08:20:30,314 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-04 08:20:30,340 - main - INFO - Included router: routers.chat_conversations.router
2026-05-04 08:20:30,363 - main - INFO - Included router: routers.chat_messages.router
2026-05-04 08:20:30,384 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-04 08:20:30,394 - main - INFO - Included router: routers.contact.router
2026-05-04 08:20:30,414 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-04 08:20:30,561 - main - INFO - Included router: routers.cpanel_admin.router
2026-05-04 08:20:30,592 - main - INFO - Included router: routers.cpanel_client.router
2026-05-04 08:20:30,594 - main - INFO - Included router: routers.cpanel_public.router
2026-05-04 08:20:30,618 - main - INFO - Included router: routers.dhl_admin.router
2026-05-04 08:20:30,621 - main - INFO - Included router: routers.dhl_public.router
2026-05-04 08:20:30,636 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-04 08:20:30,637 - main - INFO - Included router: routers.health.router
2026-05-04 08:20:30,659 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-04 08:20:30,681 - main - INFO - Included router: routers.kb_articles.router
2026-05-04 08:20:30,689 - main - INFO - Included router: routers.local_auth.router
2026-05-04 08:20:30,706 - main - INFO - Included router: routers.mfa.router
2026-05-04 08:20:30,735 - main - INFO - Included router: routers.module_sync.router
2026-05-04 08:20:30,759 - main - INFO - Included router: routers.notification_preferences.router
2026-05-04 08:20:30,783 - main - INFO - Included router: routers.notifications.router
2026-05-04 08:20:30,784 - main - INFO - Included router: routers.notifications_extras.router
2026-05-04 08:20:30,904 - main - INFO - Included router: routers.oauth.router
2026-05-04 08:20:30,928 - main - INFO - Included router: routers.order_items.router
2026-05-04 08:20:30,954 - main - INFO - Included router: routers.orders.router
2026-05-04 08:20:30,957 - main - INFO - Included router: routers.password_reset.router
2026-05-04 08:20:30,965 - main - INFO - Included router: routers.paypal_checkout.router
2026-05-04 08:20:30,990 - main - INFO - Included router: routers.plans.router
2026-05-04 08:20:31,013 - main - INFO - Included router: routers.presales_messages.router
2026-05-04 08:20:31,034 - main - INFO - Included router: routers.product_categories.router
2026-05-04 08:20:31,057 - main - INFO - Included router: routers.product_reviews.router
2026-05-04 08:20:31,084 - main - INFO - Included router: routers.products.router
2026-05-04 08:20:31,095 - main - INFO - Included router: routers.role_management.router
2026-05-04 08:20:31,117 - main - INFO - Included router: routers.service_testimonials.router
2026-05-04 08:20:31,128 - main - INFO - Included router: routers.settings.router
2026-05-04 08:20:31,146 - main - INFO - Included router: routers.site_settings.router
2026-05-04 08:20:31,163 - main - INFO - Included router: routers.smtp_settings.router
2026-05-04 08:20:31,180 - main - INFO - Included router: routers.storage.router
2026-05-04 08:20:31,184 - main - WARNING - Failed to import module 'routers.support_chat': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 08:20:31,202 - main - INFO - Included router: routers.support_departments.router
2026-05-04 08:20:31,223 - main - INFO - Included router: routers.support_seats.router
2026-05-04 08:20:31,226 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-04 08:20:31,244 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-04 08:20:31,364 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-04 08:20:31,445 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-04 08:20:31,479 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-04 08:20:31,481 - main - INFO - Included router: routers.uptimerobot_mcp.router
2026-05-04 08:20:31,485 - main - INFO - Included router: routers.user.router
2026-05-04 08:20:31,506 - main - INFO - Included router: routers.user_profiles.router
2026-05-04 08:20:31,524 - main - INFO - Included router: routers.user_roles.router
2026-05-04 08:20:31,571 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-04 08:20:31,575 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-04 08:20:31,642 - main - INFO - Included router: routers.whatsapp_admin.router
2026-05-04 08:20:31,643 - main - WARNING - Failed to import module 'routers.whatsapp_ai': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 08:20:31,648 - main - WARNING - Failed to import module 'routers.whatsapp_analytics': Unable to evaluate type annotation 'str | None'. If you are making use of the new typing syntax (unions using `|` since Python 3.10 or builtins subscripting since Python 3.9), you should either replace the use of new syntax with the existing `typing` constructs or install the `eval_type_backport` package.
2026-05-04 08:20:31,686 - main - INFO - Included router: routers.whatsapp_automation.router
2026-05-04 08:20:31,697 - main - INFO - Included router: routers.whatsapp_client.router
2026-05-04 08:20:31,699 - main - INFO - Included router: routers.whatsapp_client_ws.router
2026-05-04 08:20:31,712 - main - INFO - Included router: routers.whatsapp_contacts.router
2026-05-04 08:20:31,722 - main - INFO - Included router: routers.whatsapp_devices.router
2026-05-04 08:20:31,731 - main - INFO - Included router: routers.whmcs.router
2026-05-04 08:20:31,763 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-04 08:20:31,901 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-04 08:20:31,902 - main - INFO - === Application startup initiated ===
2026-05-04 08:20:31,902 - services.database - DEBUG - [DB_OP] Starting database initialization
2026-05-04 08:20:31,902 - services.database - INFO - 🔧 Starting database initialization...
2026-05-04 08:20:31,902 - core.database - INFO - Starting database initialization...
2026-05-04 08:20:31,902 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-04 08:20:31,902 - core.database - INFO - Creating async database engine...
2026-05-04 08:20:31,902 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-04 08:20:31,915 - core.database - INFO - Database engine created successfully
2026-05-04 08:20:31,915 - core.database - INFO - Creating async session maker...
2026-05-04 08:20:31,915 - core.database - INFO - Async session maker created successfully
2026-05-04 08:20:31,915 - core.database - INFO - Database connection initialized successfully
2026-05-04 08:20:31,915 - services.database - INFO - 🔧 Database connection initialized, now creating tables if tables not exist...
2026-05-04 08:20:31,915 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-04 08:20:31,915 - core.database - INFO - 🔧 Starting table creation...
2026-05-04 08:20:31,965 - core.database - ERROR - Failed to create tables: (in table 'orders', column 'user_id'): VARCHAR requires a length on dialect mysql
2026-05-04 08:20:31,965 - services.database - ERROR - Failed to initialize database: (in table 'orders', column 'user_id'): VARCHAR requires a length on dialect mysql
