2026-05-04 08:00:36,720 - main - INFO - === Logging system initialized ===
2026-05-04 08:00:36,720 - main - INFO - Log file: logs/app_20260504_080036.log
2026-05-04 08:00:36,720 - main - INFO - Log level: INFO
2026-05-04 08:00:36,720 - main - INFO - Timestamp: 20260504_080036
2026-05-04 08:00:36,736 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-04 08:00:36,750 - main - INFO - Included router: routers.admin_users.router
2026-05-04 08:00:36,765 - main - INFO - Included router: routers.agent_availability.router
2026-05-04 08:00:36,927 - main - WARNING - Failed to import module 'routers.ai_ticket_summary': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 08:00:36,928 - main - WARNING - Failed to import module 'routers.aihub': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 08:00:36,945 - main - INFO - Included router: routers.api_hub.router
2026-05-04 08:00:36,950 - main - INFO - Included router: routers.audit_log.router
2026-05-04 08:00:36,954 - main - INFO - Included router: routers.auth.router
2026-05-04 08:00:36,990 - main - INFO - Included router: routers.bizmail_admin.router
2026-05-04 08:00:37,020 - main - INFO - Included router: routers.bizmail_client.router
2026-05-04 08:00:37,021 - main - INFO - Included router: routers.bizmail_public.router
2026-05-04 08:00:37,062 - main - INFO - Included router: routers.cache_settings.router
2026-05-04 08:00:37,079 - main - INFO - Included router: routers.carts.router
2026-05-04 08:00:37,083 - main - INFO - Included router: routers.catalog_admin.router
2026-05-04 08:00:37,101 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-04 08:00:37,118 - main - INFO - Included router: routers.chat_attachments.router
2026-05-04 08:00:37,143 - main - INFO - Included router: routers.chat_branding.router
2026-05-04 08:00:37,148 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-04 08:00:37,169 - main - INFO - Included router: routers.chat_conversations.router
2026-05-04 08:00:37,186 - main - INFO - Included router: routers.chat_messages.router
2026-05-04 08:00:37,203 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-04 08:00:37,211 - main - INFO - Included router: routers.contact.router
2026-05-04 08:00:37,227 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-04 08:00:37,335 - main - INFO - Included router: routers.cpanel_admin.router
2026-05-04 08:00:37,360 - main - INFO - Included router: routers.cpanel_client.router
2026-05-04 08:00:37,361 - main - INFO - Included router: routers.cpanel_public.router
2026-05-04 08:00:37,379 - main - INFO - Included router: routers.dhl_admin.router
2026-05-04 08:00:37,382 - main - INFO - Included router: routers.dhl_public.router
2026-05-04 08:00:37,393 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-04 08:00:37,393 - main - INFO - Included router: routers.health.router
2026-05-04 08:00:37,410 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-04 08:00:37,427 - main - INFO - Included router: routers.kb_articles.router
2026-05-04 08:00:37,434 - main - INFO - Included router: routers.local_auth.router
2026-05-04 08:00:37,447 - main - INFO - Included router: routers.mfa.router
2026-05-04 08:00:37,468 - main - INFO - Included router: routers.module_sync.router
2026-05-04 08:00:37,486 - main - INFO - Included router: routers.notification_preferences.router
2026-05-04 08:00:37,504 - main - INFO - Included router: routers.notifications.router
2026-05-04 08:00:37,506 - main - INFO - Included router: routers.notifications_extras.router
2026-05-04 08:00:37,600 - main - INFO - Included router: routers.oauth.router
2026-05-04 08:00:37,619 - main - INFO - Included router: routers.order_items.router
2026-05-04 08:00:37,640 - main - INFO - Included router: routers.orders.router
2026-05-04 08:00:37,643 - main - INFO - Included router: routers.password_reset.router
2026-05-04 08:00:37,649 - main - INFO - Included router: routers.paypal_checkout.router
2026-05-04 08:00:37,669 - main - INFO - Included router: routers.plans.router
2026-05-04 08:00:37,687 - main - INFO - Included router: routers.presales_messages.router
2026-05-04 08:00:37,703 - main - INFO - Included router: routers.product_categories.router
2026-05-04 08:00:37,721 - main - INFO - Included router: routers.product_reviews.router
2026-05-04 08:00:37,742 - main - INFO - Included router: routers.products.router
2026-05-04 08:00:37,751 - main - INFO - Included router: routers.role_management.router
2026-05-04 08:00:37,769 - main - INFO - Included router: routers.service_testimonials.router
2026-05-04 08:00:37,777 - main - INFO - Included router: routers.settings.router
2026-05-04 08:00:37,791 - main - INFO - Included router: routers.site_settings.router
2026-05-04 08:00:37,804 - main - INFO - Included router: routers.smtp_settings.router
2026-05-04 08:00:37,818 - main - INFO - Included router: routers.storage.router
2026-05-04 08:00:37,821 - main - WARNING - Failed to import module 'routers.support_chat': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 08:00:37,836 - main - INFO - Included router: routers.support_departments.router
2026-05-04 08:00:37,853 - main - INFO - Included router: routers.support_seats.router
2026-05-04 08:00:37,855 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-04 08:00:37,870 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-04 08:00:37,966 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-04 08:00:38,030 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-04 08:00:38,056 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-04 08:00:38,058 - main - INFO - Included router: routers.uptimerobot_mcp.router
2026-05-04 08:00:38,061 - main - INFO - Included router: routers.user.router
2026-05-04 08:00:38,078 - main - INFO - Included router: routers.user_profiles.router
2026-05-04 08:00:38,093 - main - INFO - Included router: routers.user_roles.router
2026-05-04 08:00:38,129 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-04 08:00:38,133 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-04 08:00:38,183 - main - INFO - Included router: routers.whatsapp_admin.router
2026-05-04 08:00:38,184 - main - WARNING - Failed to import module 'routers.whatsapp_ai': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 08:00:38,187 - 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:00:38,217 - main - INFO - Included router: routers.whatsapp_automation.router
2026-05-04 08:00:38,226 - main - INFO - Included router: routers.whatsapp_client.router
2026-05-04 08:00:38,228 - main - INFO - Included router: routers.whatsapp_client_ws.router
2026-05-04 08:00:38,238 - main - INFO - Included router: routers.whatsapp_contacts.router
2026-05-04 08:00:38,246 - main - INFO - Included router: routers.whatsapp_devices.router
2026-05-04 08:00:38,253 - main - INFO - Included router: routers.whmcs.router
2026-05-04 08:00:38,279 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-04 08:00:38,397 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-04 08:00:38,397 - main - INFO - === Application startup initiated ===
2026-05-04 08:00:38,397 - services.database - DEBUG - [DB_OP] Starting database initialization
2026-05-04 08:00:38,397 - services.database - INFO - 🔧 Starting database initialization...
2026-05-04 08:00:38,397 - core.database - INFO - Starting database initialization...
2026-05-04 08:00:38,397 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-04 08:00:38,398 - core.database - WARNING - Unknown database driver: mysql+pymysql
2026-05-04 08:00:38,398 - core.database - INFO - Creating async database engine...
2026-05-04 08:00:38,398 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-04 08:00:38,406 - core.database - ERROR - Failed to initialize database: The asyncio extension requires an async driver to be used. The loaded 'pymysql' is not async.
Traceback (most recent call last):
  File "/home/devdoiteasy/public_html/app/backend/core/database.py", line 200, in init_db
    self.engine = create_async_engine(database_url, **engine_kwargs)
  File "/home/devdoiteasy/public_html/app/backend/venv/lib64/python3.9/site-packages/sqlalchemy/ext/asyncio/engine.py", line 121, in create_async_engine
    return AsyncEngine(sync_engine)
  File "/home/devdoiteasy/public_html/app/backend/venv/lib64/python3.9/site-packages/sqlalchemy/ext/asyncio/engine.py", line 1035, in __init__
    raise exc.InvalidRequestError(
sqlalchemy.exc.InvalidRequestError: The asyncio extension requires an async driver to be used. The loaded 'pymysql' is not async.
2026-05-04 08:00:38,407 - services.database - ERROR - Failed to initialize database: The asyncio extension requires an async driver to be used. The loaded 'pymysql' is not async.
