2026-05-03 02:08:39,865 - main - INFO - === Logging system initialized ===
2026-05-03 02:08:39,866 - main - INFO - Log file: logs/app_20260503_020839.log
2026-05-03 02:08:39,866 - main - INFO - Log level: INFO
2026-05-03 02:08:39,866 - main - INFO - Timestamp: 20260503_020839
2026-05-03 02:08:39,930 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 02:08:39,969 - main - INFO - Included router: routers.admin_users.router
2026-05-03 02:08:40,007 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 02:08:40,796 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 02:08:40,821 - main - INFO - Included router: routers.aihub.router
2026-05-03 02:08:40,835 - main - INFO - Included router: routers.audit_log.router
2026-05-03 02:08:40,845 - main - INFO - Included router: routers.auth.router
2026-05-03 02:08:40,860 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 02:08:40,903 - main - INFO - Included router: routers.carts.router
2026-05-03 02:08:40,953 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 02:08:41,000 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 02:08:41,099 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 02:08:41,123 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 02:08:41,258 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 02:08:41,303 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 02:08:41,348 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 02:08:41,378 - main - INFO - Included router: routers.contact.router
2026-05-03 02:08:41,418 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 02:08:41,467 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 02:08:41,469 - main - INFO - Included router: routers.health.router
2026-05-03 02:08:41,514 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 02:08:41,557 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 02:08:41,748 - main - INFO - Included router: routers.local_auth.router
2026-05-03 02:08:41,794 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 02:08:41,840 - main - INFO - Included router: routers.notifications.router
2026-05-03 02:08:41,846 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 02:08:41,940 - main - INFO - Included router: routers.oauth.router
2026-05-03 02:08:42,155 - main - INFO - Included router: routers.order_items.router
2026-05-03 02:08:42,226 - main - INFO - Included router: routers.orders.router
2026-05-03 02:08:42,232 - main - INFO - Included router: routers.password_reset.router
2026-05-03 02:08:42,282 - main - INFO - Included router: routers.plans.router
2026-05-03 02:08:42,324 - main - INFO - Included router: routers.product_categories.router
2026-05-03 02:08:42,369 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 02:08:42,421 - main - INFO - Included router: routers.products.router
2026-05-03 02:08:42,443 - main - INFO - Included router: routers.role_management.router
2026-05-03 02:08:42,491 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 02:08:42,511 - main - INFO - Included router: routers.settings.router
2026-05-03 02:08:42,546 - main - INFO - Included router: routers.site_settings.router
2026-05-03 02:08:42,580 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 02:08:42,614 - main - INFO - Included router: routers.storage.router
2026-05-03 02:08:42,933 - main - INFO - Included router: routers.support_chat.router
2026-05-03 02:08:42,969 - main - INFO - Included router: routers.support_departments.router
2026-05-03 02:08:43,021 - main - INFO - Included router: routers.support_seats.router
2026-05-03 02:08:43,039 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 02:08:43,081 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 02:08:43,127 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 02:08:43,137 - main - INFO - Included router: routers.user.router
2026-05-03 02:08:43,188 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 02:08:43,235 - main - INFO - Included router: routers.user_roles.router
2026-05-03 02:08:43,346 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 02:08:43,358 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 02:08:43,380 - main - INFO - Included router: routers.whmcs.router
2026-05-03 02:08:43,472 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 02:08:43,520 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 02:08:43,522 - main - INFO - === Application startup initiated ===
2026-05-03 02:08:43,522 - services.database - INFO - Ignore creating tables
2026-05-03 02:08:43,522 - services.mock_data - INFO - Ignore initialize data
2026-05-03 02:08:43,522 - services.auth - INFO - Ignore initialize admin
2026-05-03 02:08:43,523 - main - INFO - === Application startup completed successfully ===
2026-05-03 02:08:58,693 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:08:58,694 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 02:08:58,694 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 02:08:58,694 - core.database - INFO - Starting database initialization...
2026-05-03 02:08:58,694 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 02:08:58,694 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 02:08:58,695 - core.database - INFO - Creating async database engine...
2026-05-03 02:08:58,696 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 02:08:58,748 - core.database - INFO - Database engine created successfully
2026-05-03 02:08:58,748 - core.database - INFO - Creating async session maker...
2026-05-03 02:08:58,748 - core.database - INFO - Async session maker created successfully
2026-05-03 02:08:58,748 - core.database - INFO - Database connection initialized successfully
2026-05-03 02:08:58,749 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 02:08:58,749 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 02:09:02,496 - core.database - INFO - Tables initialized successfully
2026-05-03 02:09:02,497 - core.database - DEBUG - [DB_OP] Create tables completed in 3.7482s
2026-05-03 02:09:02,560 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 02:09:02,561 - core.database - DEBUG - [DB_OP] Database session created successfully in 3.8678s
2026-05-03 02:09:03,038 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.3445s
2026-05-03 02:09:30,009 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:09:30,009 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 02:09:30,328 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3194s
2026-05-03 02:09:30,608 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:09:30,609 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 02:09:30,926 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3184s
2026-05-03 02:11:01,987 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:11:01,988 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 02:11:01,988 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 02:11:01,988 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 02:11:02,033 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 02:11:02,036 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 02:11:02,047 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:11:02,047 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 02:11:02,055 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:11:02,056 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 02:11:02,056 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 02:11:02,216 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:11:02,216 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 02:11:02,217 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 02:11:02,467 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 02:11:02,499 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 02:11:02,500 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-03 02:11:02,500 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-03 02:11:02,597 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 02:11:02,612 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f39d841e0b0>
2026-05-03 02:11:02,612 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f39d8d636c0> server_hostname='atoms.dev' timeout=120.0
2026-05-03 02:11:02,620 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f39d8c86e30>
2026-05-03 02:11:02,621 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 02:11:02,622 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 02:11:02,622 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 02:11:02,622 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 02:11:02,623 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 02:11:02,749 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 09:11:02 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'16c97f59ad61039f9349b0bcd35a434c'), (b'X-Trace-Id', b'0e3aa99e7a0a48778f2f0aa47aed3662'), (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'9f5e22d16f7f11d4-LAX')])
2026-05-03 02:11:02,751 - 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 02:11:02,751 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 02:11:02,752 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 02:11:02,752 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 02:11:02,753 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 02:11:02,753 - httpcore.connection - DEBUG - close.started
2026-05-03 02:11:02,755 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7081s
2026-05-03 02:11:02,755 - httpcore.connection - DEBUG - close.complete
2026-05-03 02:11:02,948 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 02:11:02,949 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8935s
2026-05-03 02:11:03,019 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.0320s
2026-05-03 02:11:03,072 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 02:11:03,073 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8570s
2026-05-03 02:12:02,608 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:12:02,609 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-03 02:12:02,991 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3832s
2026-05-03 02:13:23,760 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:13:23,761 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 02:13:24,206 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4454s
2026-05-03 02:14:15,442 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:14:15,443 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 02:14:15,500 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:14:15,500 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 02:14:15,502 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-05-03 02:14:15,502 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:14:15,503 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 02:14:15,503 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 02:14:15,504 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:14:15,505 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 02:14:15,505 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 02:14:15,887 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 02:14:15,888 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3832s
2026-05-03 02:14:15,937 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4369s
2026-05-03 02:14:16,011 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 02:14:16,011 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5088s
2026-05-03 02:14:16,278 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8352s
2026-05-03 02:14:36,570 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:14:36,571 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 02:14:36,890 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3200s
2026-05-03 02:15:17,962 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:15:17,963 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 02:15:17,963 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 02:15:17,965 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 02:15:17,985 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:15:17,985 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 02:15:18,156 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:15:18,156 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 02:15:18,157 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 02:15:18,159 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 02:15:18,159 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 02:15:18,159 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 02:15:18,302 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3177s
2026-05-03 02:15:18,393 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 02:15:18,418 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 02:15:18,420 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 02:15:18,428 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f39d8473010>
2026-05-03 02:15:18,429 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f39d8cbb440> server_hostname='atoms.dev' timeout=120.0
2026-05-03 02:15:18,436 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f39d84728f0>
2026-05-03 02:15:18,437 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 02:15:18,437 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 02:15:18,438 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 02:15:18,438 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 02:15:18,438 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 02:15:18,548 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 02:15:18,548 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3897s
2026-05-03 02:15:18,667 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 09:15:18 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'6069c335e219541e06f1ca98bb2643bf'), (b'X-Trace-Id', b'0babe03d37f84e619ef8fe7277902215'), (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'9f5e291038b0279a-LAX')])
2026-05-03 02:15:18,668 - 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 02:15:18,668 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 02:15:18,669 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 02:15:18,669 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 02:15:18,669 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 02:15:18,670 - httpcore.connection - DEBUG - close.started
2026-05-03 02:15:18,670 - httpcore.connection - DEBUG - close.complete
2026-05-03 02:15:18,674 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 02:15:18,674 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5182s
2026-05-03 02:15:18,807 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8443s
2026-05-03 02:15:31,463 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 02:15:31,725 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 02:15:31,725 - services.database - INFO - Database connections closed
2026-05-03 02:15:31,725 - services.database - DEBUG - [DB_OP] Database close completed in 0.2626s
