2026-05-03 08:31:42,660 - main - INFO - === Logging system initialized ===
2026-05-03 08:31:42,660 - main - INFO - Log file: logs/app_20260503_083142.log
2026-05-03 08:31:42,660 - main - INFO - Log level: INFO
2026-05-03 08:31:42,660 - main - INFO - Timestamp: 20260503_083142
2026-05-03 08:31:42,722 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 08:31:42,763 - main - INFO - Included router: routers.admin_users.router
2026-05-03 08:31:42,803 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 08:31:43,556 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 08:31:43,582 - main - INFO - Included router: routers.aihub.router
2026-05-03 08:31:43,630 - main - INFO - Included router: routers.api_hub.router
2026-05-03 08:31:43,644 - main - INFO - Included router: routers.audit_log.router
2026-05-03 08:31:43,654 - main - INFO - Included router: routers.auth.router
2026-05-03 08:31:43,936 - main - INFO - Included router: routers.bizmail_public.router
2026-05-03 08:31:43,953 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 08:31:43,995 - main - INFO - Included router: routers.carts.router
2026-05-03 08:31:44,043 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 08:31:44,086 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 08:31:44,279 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 08:31:44,292 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 08:31:44,345 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 08:31:44,396 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 08:31:44,439 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 08:31:44,461 - main - INFO - Included router: routers.contact.router
2026-05-03 08:31:44,502 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 08:31:44,545 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 08:31:44,546 - main - INFO - Included router: routers.health.router
2026-05-03 08:31:44,594 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 08:31:44,643 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 08:31:44,665 - main - INFO - Included router: routers.local_auth.router
2026-05-03 08:31:44,704 - main - INFO - Included router: routers.mfa.router
2026-05-03 08:31:44,753 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 08:31:44,901 - main - INFO - Included router: routers.notifications.router
2026-05-03 08:31:44,911 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 08:31:45,011 - main - INFO - Included router: routers.oauth.router
2026-05-03 08:31:45,078 - main - INFO - Included router: routers.order_items.router
2026-05-03 08:31:45,132 - main - INFO - Included router: routers.orders.router
2026-05-03 08:31:45,141 - main - INFO - Included router: routers.password_reset.router
2026-05-03 08:31:45,191 - main - INFO - Included router: routers.plans.router
2026-05-03 08:31:45,241 - main - INFO - Included router: routers.presales_messages.router
2026-05-03 08:31:45,288 - main - INFO - Included router: routers.product_categories.router
2026-05-03 08:31:45,336 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 08:31:45,393 - main - INFO - Included router: routers.products.router
2026-05-03 08:31:45,421 - main - INFO - Included router: routers.role_management.router
2026-05-03 08:31:45,463 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 08:31:45,484 - main - INFO - Included router: routers.settings.router
2026-05-03 08:31:45,519 - main - INFO - Included router: routers.site_settings.router
2026-05-03 08:31:45,551 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 08:31:45,706 - main - INFO - Included router: routers.storage.router
2026-05-03 08:31:45,819 - main - INFO - Included router: routers.support_chat.router
2026-05-03 08:31:45,858 - main - INFO - Included router: routers.support_departments.router
2026-05-03 08:31:45,902 - main - INFO - Included router: routers.support_seats.router
2026-05-03 08:31:45,924 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 08:31:45,962 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 08:31:46,002 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 08:31:46,197 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-03 08:31:46,264 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-03 08:31:46,274 - main - INFO - Included router: routers.user.router
2026-05-03 08:31:46,316 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 08:31:46,350 - main - INFO - Included router: routers.user_roles.router
2026-05-03 08:31:46,443 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 08:31:46,454 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 08:31:46,661 - main - INFO - Included router: routers.whatsapp_client.router
2026-05-03 08:31:46,666 - main - INFO - Included router: routers.whatsapp_client_ws.router
2026-05-03 08:31:46,685 - main - INFO - Included router: routers.whmcs.router
2026-05-03 08:31:46,750 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 08:31:46,788 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 08:31:46,790 - main - INFO - === Application startup initiated ===
2026-05-03 08:31:46,790 - services.database - INFO - Ignore creating tables
2026-05-03 08:31:46,790 - services.mock_data - INFO - Ignore initialize data
2026-05-03 08:31:46,790 - services.auth - INFO - Ignore initialize admin
2026-05-03 08:31:46,790 - main - INFO - === Application startup completed successfully ===
2026-05-03 08:31:46,798 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 08:31:46,798 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 08:31:46,798 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 08:31:46,798 - core.database - INFO - Starting database initialization...
2026-05-03 08:31:46,798 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 08:31:46,798 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 08:31:46,799 - core.database - INFO - Creating async database engine...
2026-05-03 08:31:46,799 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 08:31:46,857 - core.database - INFO - Database engine created successfully
2026-05-03 08:31:46,858 - core.database - INFO - Creating async session maker...
2026-05-03 08:31:46,858 - core.database - INFO - Async session maker created successfully
2026-05-03 08:31:46,858 - core.database - INFO - Database connection initialized successfully
2026-05-03 08:31:46,858 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 08:31:46,858 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 08:31:50,577 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 08:31:50,577 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 08:31:50,578 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 08:31:50,578 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 08:31:50,591 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 08:31:51,717 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.1398s
2026-05-03 08:31:52,497 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 08:31:52,498 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 08:31:52,498 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 08:31:52,750 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 08:31:53,059 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 08:31:53,059 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-03 08:31:53,059 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-03 08:31:53,144 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 08:31:53,159 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7efd20bfb5b0>
2026-05-03 08:31:53,159 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7efd20b7acc0> server_hostname='atoms.dev' timeout=120.0
2026-05-03 08:31:53,168 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7efd20bfaec0>
2026-05-03 08:31:53,169 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 08:31:53,169 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 08:31:53,169 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 08:31:53,169 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 08:31:53,170 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 08:31:53,304 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 15:31:53 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'41401364c86fada357620deea2ff3acb'), (b'X-Trace-Id', b'911db3483c5b40c8afa7ce9b787fa9d3'), (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'9f6050b14b5a55da-LAX')])
2026-05-03 08:31:53,306 - 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 08:31:53,306 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 08:31:53,306 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 08:31:53,307 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 08:31:53,307 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 08:31:53,307 - httpcore.connection - DEBUG - close.started
2026-05-03 08:31:53,308 - httpcore.connection - DEBUG - close.complete
2026-05-03 08:31:53,727 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.2299s
2026-05-03 08:31:54,896 - core.database - INFO - Tables initialized successfully
2026-05-03 08:31:54,897 - core.database - DEBUG - [DB_OP] Create tables completed in 8.0388s
2026-05-03 08:31:54,962 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 08:31:54,963 - core.database - DEBUG - [DB_OP] Database session created successfully in 8.1652s
2026-05-03 08:31:55,221 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 08:31:55,221 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 08:31:55,221 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 08:31:55,223 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 08:31:55,472 - core.database - DEBUG - [DB_OP] Database session cleanup after 8.6745s
2026-05-03 08:31:55,503 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 08:31:55,506 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 08:31:55,550 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 08:31:55,563 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7efd23a0a5c0>
2026-05-03 08:31:55,564 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7efd20c51240> server_hostname='atoms.dev' timeout=120.0
2026-05-03 08:31:55,569 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7efd23a3d630>
2026-05-03 08:31:55,569 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 08:31:55,570 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 08:31:55,570 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 08:31:55,570 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 08:31:55,570 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 08:31:55,687 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 15:31:55 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'e915dd22b3ef2d752bb28c63b5bffa90'), (b'X-Trace-Id', b'2840a798a45d4d8c8df91863cd645603'), (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'9f6050c05e75a158-LAX')])
2026-05-03 08:31:55,688 - 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 08:31:55,688 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 08:31:55,689 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 08:31:55,689 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 08:31:55,689 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 08:31:55,689 - httpcore.connection - DEBUG - close.started
2026-05-03 08:31:55,690 - httpcore.connection - DEBUG - close.complete
2026-05-03 08:31:55,741 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 08:31:55,741 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 08:31:56,143 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4022s
2026-05-03 08:31:56,144 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.9230s
2026-05-03 08:32:12,953 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 08:32:12,953 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 08:32:13,332 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3788s
2026-05-03 08:32:27,645 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 08:32:27,778 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 08:32:27,779 - services.database - INFO - Database connections closed
2026-05-03 08:32:27,779 - services.database - DEBUG - [DB_OP] Database close completed in 0.1339s
