2026-05-03 11:24:44,828 - main - INFO - === Logging system initialized ===
2026-05-03 11:24:44,828 - main - INFO - Log file: logs/app_20260503_112444.log
2026-05-03 11:24:44,828 - main - INFO - Log level: INFO
2026-05-03 11:24:44,828 - main - INFO - Timestamp: 20260503_112444
2026-05-03 11:24:44,895 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 11:24:44,940 - main - INFO - Included router: routers.admin_users.router
2026-05-03 11:24:44,982 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 11:24:45,766 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 11:24:45,784 - main - INFO - Included router: routers.aihub.router
2026-05-03 11:24:45,825 - main - INFO - Included router: routers.api_hub.router
2026-05-03 11:24:45,840 - main - INFO - Included router: routers.audit_log.router
2026-05-03 11:24:45,851 - main - INFO - Included router: routers.auth.router
2026-05-03 11:24:45,938 - main - INFO - Included router: routers.bizmail_admin.router
2026-05-03 11:24:46,003 - main - INFO - Included router: routers.bizmail_client.router
2026-05-03 11:24:46,039 - main - INFO - Included router: routers.bizmail_public.router
2026-05-03 11:24:46,054 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 11:24:46,169 - main - INFO - Included router: routers.carts.router
2026-05-03 11:24:46,214 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 11:24:46,253 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 11:24:46,316 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 11:24:46,330 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 11:24:46,383 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 11:24:46,424 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 11:24:46,467 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 11:24:46,492 - main - INFO - Included router: routers.contact.router
2026-05-03 11:24:46,532 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 11:24:46,790 - main - INFO - Included router: routers.cpanel_admin.router
2026-05-03 11:24:46,867 - main - INFO - Included router: routers.cpanel_client.router
2026-05-03 11:24:46,872 - main - INFO - Included router: routers.cpanel_public.router
2026-05-03 11:24:46,926 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 11:24:46,927 - main - INFO - Included router: routers.health.router
2026-05-03 11:24:46,973 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 11:24:47,019 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 11:24:47,053 - main - INFO - Included router: routers.local_auth.router
2026-05-03 11:24:47,086 - main - INFO - Included router: routers.mfa.router
2026-05-03 11:24:47,155 - main - INFO - Included router: routers.module_sync.router
2026-05-03 11:24:47,207 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 11:24:47,255 - main - INFO - Included router: routers.notifications.router
2026-05-03 11:24:47,260 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 11:24:47,349 - main - INFO - Included router: routers.oauth.router
2026-05-03 11:24:47,565 - main - INFO - Included router: routers.order_items.router
2026-05-03 11:24:47,619 - main - INFO - Included router: routers.orders.router
2026-05-03 11:24:47,625 - main - INFO - Included router: routers.password_reset.router
2026-05-03 11:24:47,673 - main - INFO - Included router: routers.plans.router
2026-05-03 11:24:47,718 - main - INFO - Included router: routers.presales_messages.router
2026-05-03 11:24:47,760 - main - INFO - Included router: routers.product_categories.router
2026-05-03 11:24:47,804 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 11:24:47,856 - main - INFO - Included router: routers.products.router
2026-05-03 11:24:47,877 - main - INFO - Included router: routers.role_management.router
2026-05-03 11:24:47,918 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 11:24:47,937 - main - INFO - Included router: routers.settings.router
2026-05-03 11:24:47,972 - main - INFO - Included router: routers.site_settings.router
2026-05-03 11:24:48,002 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 11:24:48,064 - main - INFO - Included router: routers.storage.router
2026-05-03 11:24:48,162 - main - INFO - Included router: routers.support_chat.router
2026-05-03 11:24:48,196 - main - INFO - Included router: routers.support_departments.router
2026-05-03 11:24:48,238 - main - INFO - Included router: routers.support_seats.router
2026-05-03 11:24:48,245 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 11:24:48,486 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 11:24:48,531 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 11:24:48,687 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-03 11:24:48,752 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-03 11:24:48,759 - main - INFO - Included router: routers.uptimerobot_mcp.router
2026-05-03 11:24:48,766 - main - INFO - Included router: routers.user.router
2026-05-03 11:24:48,805 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 11:24:48,838 - main - INFO - Included router: routers.user_roles.router
2026-05-03 11:24:48,938 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 11:24:48,949 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 11:24:49,088 - main - INFO - Included router: routers.whatsapp_admin.router
2026-05-03 11:24:49,107 - main - INFO - Included router: routers.whatsapp_ai.router
2026-05-03 11:24:49,154 - main - INFO - Included router: routers.whatsapp_analytics.router
2026-05-03 11:24:49,235 - main - INFO - Included router: routers.whatsapp_automation.router
2026-05-03 11:24:49,257 - main - INFO - Included router: routers.whatsapp_client.router
2026-05-03 11:24:49,262 - main - INFO - Included router: routers.whatsapp_client_ws.router
2026-05-03 11:24:49,287 - main - INFO - Included router: routers.whatsapp_contacts.router
2026-05-03 11:24:49,306 - main - INFO - Included router: routers.whatsapp_devices.router
2026-05-03 11:24:49,322 - main - INFO - Included router: routers.whmcs.router
2026-05-03 11:24:49,569 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 11:24:49,625 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 11:24:49,627 - main - INFO - === Application startup initiated ===
2026-05-03 11:24:49,627 - services.database - INFO - Ignore creating tables
2026-05-03 11:24:49,627 - services.mock_data - INFO - Ignore initialize data
2026-05-03 11:24:49,628 - services.auth - INFO - Ignore initialize admin
2026-05-03 11:24:49,628 - main - INFO - === Application startup completed successfully ===
2026-05-03 11:24:59,377 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 11:24:59,377 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 11:24:59,377 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 11:24:59,377 - core.database - INFO - Starting database initialization...
2026-05-03 11:24:59,377 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 11:24:59,377 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 11:24:59,378 - core.database - INFO - Creating async database engine...
2026-05-03 11:24:59,379 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 11:24:59,423 - core.database - INFO - Database engine created successfully
2026-05-03 11:24:59,423 - core.database - INFO - Creating async session maker...
2026-05-03 11:24:59,424 - core.database - INFO - Async session maker created successfully
2026-05-03 11:24:59,424 - core.database - INFO - Database connection initialized successfully
2026-05-03 11:24:59,424 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 11:24:59,424 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 11:24:59,432 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 11:24:59,433 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 11:24:59,445 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-03 11:24:59,448 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-03 11:24:59,451 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 11:24:59,452 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 11:24:59,452 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 11:24:59,455 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 11:24:59,455 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 11:24:59,456 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 11:24:59,459 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 11:24:59,459 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 11:24:59,695 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-03 11:24:59,695 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-03 11:24:59,695 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-03 11:24:59,778 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 11:24:59,789 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fbcc9aa66e0>
2026-05-03 11:24:59,789 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fbccbbb76c0> server_hostname='atoms.dev' timeout=120.0
2026-05-03 11:24:59,797 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fbcc9aa6380>
2026-05-03 11:24:59,797 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 11:24:59,798 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 11:24:59,798 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 11:24:59,798 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 11:24:59,798 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 11:24:59,940 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 18:24:59 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Access-Control-Allow-Headers', b'Origin, Content-Type, Accept, Authorization'), (b'Access-Control-Allow-Methods', b'GET, POST, PUT, DELETE, OPTIONS'), (b'Access-Control-Allow-Origin', b'*'), (b'Access-Control-Max-Age', b'86400'), (b'X-Request-Id', b'85a4a33a678213c94e6b15c46d98063c'), (b'X-Trace-Id', b'5794a6c3476c47e19336b4686056681f'), (b'Content-Security-Policy', b"frame-ancestors 'self' https://atoms.dev"), (b'Strict-Transport-Security', b'max-age=63072000; includeSubDomains; preload'), (b'X-Content-Type-Options', b'nosniff'), (b'X-XSS-Protection', b'1; mode=block'), (b'Referrer-Policy', b'strict-origin-when-cross-origin'), (b'cf-cache-status', b'DYNAMIC'), (b'Content-Encoding', b'gzip'), (b'Server', b'cloudflare'), (b'CF-RAY', b'9f614e45bbfdc982-LAX')])
2026-05-03 11:24:59,941 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-05-03 11:24:59,941 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 11:24:59,942 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 11:24:59,942 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 11:24:59,942 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 11:24:59,943 - httpcore.connection - DEBUG - close.started
2026-05-03 11:24:59,943 - httpcore.connection - DEBUG - close.complete
2026-05-03 11:25:00,838 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.3787s
2026-05-03 11:25:00,968 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 11:25:00,969 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.5140s
2026-05-03 11:25:00,996 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 11:25:00,997 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.5455s
2026-05-03 11:25:05,953 - core.database - INFO - Tables initialized successfully
2026-05-03 11:25:05,953 - core.database - DEBUG - [DB_OP] Create tables completed in 6.5294s
2026-05-03 11:25:06,017 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 11:25:06,018 - core.database - DEBUG - [DB_OP] Database session created successfully in 6.6410s
2026-05-03 11:25:06,018 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-03 11:25:06,991 - core.database - DEBUG - [DB_OP] Database session cleanup after 7.6149s
2026-05-03 11:25:58,726 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-03 11:25:58,729 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 11:25:58,729 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 11:25:58,730 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-03 11:25:58,734 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 11:25:58,735 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 11:25:58,736 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 11:25:58,737 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 11:25:58,737 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 11:25:58,738 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-03 11:25:58,740 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 11:25:58,740 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 11:25:58,740 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 11:25:58,962 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-03 11:25:58,986 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 11:25:58,994 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fbcc95e7340>
2026-05-03 11:25:58,994 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fbcc95dc640> server_hostname='atoms.dev' timeout=120.0
2026-05-03 11:25:59,003 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fbcc95e70a0>
2026-05-03 11:25:59,003 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 11:25:59,004 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 11:25:59,004 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 11:25:59,004 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 11:25:59,004 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 11:25:59,179 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 18:25:59 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Access-Control-Allow-Headers', b'Origin, Content-Type, Accept, Authorization'), (b'Access-Control-Allow-Methods', b'GET, POST, PUT, DELETE, OPTIONS'), (b'Access-Control-Allow-Origin', b'*'), (b'Access-Control-Max-Age', b'86400'), (b'X-Request-Id', b'b12cf24f0fbab9463004520302e4c48a'), (b'X-Trace-Id', b'a96d89ba278f4e79b94d97b6ede14667'), (b'Content-Security-Policy', b"frame-ancestors 'self' https://atoms.dev"), (b'Strict-Transport-Security', b'max-age=63072000; includeSubDomains; preload'), (b'X-Content-Type-Options', b'nosniff'), (b'X-XSS-Protection', b'1; mode=block'), (b'Referrer-Policy', b'strict-origin-when-cross-origin'), (b'cf-cache-status', b'DYNAMIC'), (b'Content-Encoding', b'gzip'), (b'Server', b'cloudflare'), (b'CF-RAY', b'9f614fb7ce063969-LAX')])
2026-05-03 11:25:59,179 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-05-03 11:25:59,180 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 11:25:59,180 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 11:25:59,180 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 11:25:59,180 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 11:25:59,181 - httpcore.connection - DEBUG - close.started
2026-05-03 11:25:59,181 - httpcore.connection - DEBUG - close.complete
2026-05-03 11:25:59,182 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4477s
2026-05-03 11:25:59,246 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 11:25:59,246 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5066s
2026-05-03 11:25:59,316 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 11:25:59,317 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5803s
2026-05-03 11:25:59,624 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8949s
2026-05-03 11:36:49,010 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 11:36:49,012 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 11:36:49,012 - services.database - INFO - Database connections closed
2026-05-03 11:36:49,012 - services.database - DEBUG - [DB_OP] Database close completed in 0.0019s
