2026-05-03 05:23:52,686 - main - INFO - === Logging system initialized ===
2026-05-03 05:23:52,686 - main - INFO - Log file: logs/app_20260503_052352.log
2026-05-03 05:23:52,686 - main - INFO - Log level: INFO
2026-05-03 05:23:52,687 - main - INFO - Timestamp: 20260503_052352
2026-05-03 05:23:52,758 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 05:23:52,802 - main - INFO - Included router: routers.admin_users.router
2026-05-03 05:23:52,844 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 05:23:53,598 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 05:23:53,620 - main - INFO - Included router: routers.aihub.router
2026-05-03 05:23:53,664 - main - INFO - Included router: routers.api_hub.router
2026-05-03 05:23:53,678 - main - INFO - Included router: routers.audit_log.router
2026-05-03 05:23:53,691 - main - INFO - Included router: routers.auth.router
2026-05-03 05:23:53,708 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 05:23:53,748 - main - INFO - Included router: routers.carts.router
2026-05-03 05:23:53,804 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 05:23:53,852 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 05:23:53,987 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 05:23:54,001 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 05:23:54,092 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 05:23:54,138 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 05:23:54,184 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 05:23:54,207 - main - INFO - Included router: routers.contact.router
2026-05-03 05:23:54,254 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 05:23:54,303 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 05:23:54,309 - main - INFO - Included router: routers.health.router
2026-05-03 05:23:54,352 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 05:23:54,395 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 05:23:54,421 - main - INFO - Included router: routers.local_auth.router
2026-05-03 05:23:54,451 - main - INFO - Included router: routers.mfa.router
2026-05-03 05:23:54,501 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 05:23:54,553 - main - INFO - Included router: routers.notifications.router
2026-05-03 05:23:54,560 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 05:23:54,766 - main - INFO - Included router: routers.oauth.router
2026-05-03 05:23:54,810 - main - INFO - Included router: routers.order_items.router
2026-05-03 05:23:54,858 - main - INFO - Included router: routers.orders.router
2026-05-03 05:23:54,863 - main - INFO - Included router: routers.password_reset.router
2026-05-03 05:23:54,907 - main - INFO - Included router: routers.plans.router
2026-05-03 05:23:54,945 - main - INFO - Included router: routers.product_categories.router
2026-05-03 05:23:54,986 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 05:23:55,036 - main - INFO - Included router: routers.products.router
2026-05-03 05:23:55,056 - main - INFO - Included router: routers.role_management.router
2026-05-03 05:23:55,096 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 05:23:55,113 - main - INFO - Included router: routers.settings.router
2026-05-03 05:23:55,144 - main - INFO - Included router: routers.site_settings.router
2026-05-03 05:23:55,175 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 05:23:55,206 - main - INFO - Included router: routers.storage.router
2026-05-03 05:23:55,412 - main - INFO - Included router: routers.support_chat.router
2026-05-03 05:23:55,476 - main - INFO - Included router: routers.support_departments.router
2026-05-03 05:23:55,516 - main - INFO - Included router: routers.support_seats.router
2026-05-03 05:23:55,523 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 05:23:55,557 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 05:23:55,594 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 05:23:55,748 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-03 05:23:55,799 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-03 05:23:55,812 - main - INFO - Included router: routers.user.router
2026-05-03 05:23:55,853 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 05:23:55,887 - main - INFO - Included router: routers.user_roles.router
2026-05-03 05:23:55,980 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 05:23:55,989 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 05:23:56,007 - main - INFO - Included router: routers.whmcs.router
2026-05-03 05:23:56,096 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 05:23:56,276 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 05:23:56,278 - main - INFO - === Application startup initiated ===
2026-05-03 05:23:56,278 - services.database - INFO - Ignore creating tables
2026-05-03 05:23:56,278 - services.mock_data - INFO - Ignore initialize data
2026-05-03 05:23:56,278 - services.auth - INFO - Ignore initialize admin
2026-05-03 05:23:56,278 - main - INFO - === Application startup completed successfully ===
2026-05-03 05:24:09,067 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 05:24:09,068 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 05:24:09,078 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:24:09,078 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:24:09,078 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 05:24:09,078 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 05:24:09,078 - core.database - INFO - Starting database initialization...
2026-05-03 05:24:09,078 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 05:24:09,079 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 05:24:09,079 - core.database - INFO - Creating async database engine...
2026-05-03 05:24:09,079 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 05:24:09,119 - core.database - INFO - Database engine created successfully
2026-05-03 05:24:09,119 - core.database - INFO - Creating async session maker...
2026-05-03 05:24:09,119 - core.database - INFO - Async session maker created successfully
2026-05-03 05:24:09,119 - core.database - INFO - Database connection initialized successfully
2026-05-03 05:24:09,119 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 05:24:09,119 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 05:24:13,505 - core.database - INFO - Tables initialized successfully
2026-05-03 05:24:13,506 - core.database - DEBUG - [DB_OP] Create tables completed in 4.3865s
2026-05-03 05:24:13,569 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 05:24:13,569 - core.database - DEBUG - [DB_OP] Database session created successfully in 4.4911s
2026-05-03 05:24:14,113 - core.database - DEBUG - [DB_OP] Database session cleanup after 5.0346s
2026-05-03 05:24:27,061 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:24:27,061 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 05:24:27,444 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3827s
2026-05-03 05:24:36,673 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:24:36,676 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:24:36,676 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 05:24:36,676 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:24:36,737 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:24:36,738 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0012s
2026-05-03 05:24:36,745 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:24:36,745 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 05:24:36,746 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 05:24:36,796 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:24:36,796 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 05:24:36,796 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 05:24:36,940 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:24:36,977 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:24:36,978 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-03 05:24:36,978 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-03 05:24:37,087 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 05:24:37,095 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fea37ea4af0>
2026-05-03 05:24:37,096 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fea37fb77c0> server_hostname='atoms.dev' timeout=120.0
2026-05-03 05:24:37,102 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fea37ea46d0>
2026-05-03 05:24:37,103 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 05:24:37,103 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 05:24:37,103 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 05:24:37,103 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 05:24:37,103 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 05:24:37,221 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 12:24:37 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'079ed5ff465974f535cef42fa0a50e32'), (b'X-Trace-Id', b'4325e8a346ac4c58aafd53aadbf01458'), (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'9f5f3e5feedacba2-LAX')])
2026-05-03 05:24:37,223 - 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 05:24:37,223 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 05:24:37,223 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 05:24:37,223 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 05:24:37,224 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 05:24:37,224 - httpcore.connection - DEBUG - close.started
2026-05-03 05:24:37,224 - httpcore.connection - DEBUG - close.complete
2026-05-03 05:24:37,435 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.6977s
2026-05-03 05:24:37,611 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 05:24:37,611 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8668s
2026-05-03 05:24:37,675 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.9990s
2026-05-03 05:24:37,676 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 05:24:37,676 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8804s
2026-05-03 05:25:28,048 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:25:28,049 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 05:25:28,467 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4189s
2026-05-03 05:25:37,052 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:25:37,053 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 05:25:37,368 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3155s
2026-05-03 05:26:09,205 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:26:09,205 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:26:09,205 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0001s
2026-05-03 05:26:09,710 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5045s
2026-05-03 05:26:29,052 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:26:29,053 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 05:26:29,494 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4417s
2026-05-03 05:26:37,220 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:26:37,221 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 05:26:37,536 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3158s
2026-05-03 05:27:30,055 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:27:30,055 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 05:27:30,371 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3162s
2026-05-03 05:27:37,054 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:27:37,054 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 05:27:37,437 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3839s
2026-05-03 05:28:09,056 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:28:09,056 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:28:09,057 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 05:28:09,498 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4412s
2026-05-03 05:28:31,069 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:28:31,070 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 05:28:31,463 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3936s
2026-05-03 05:28:37,055 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:28:37,055 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 05:28:37,371 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3154s
2026-05-03 05:29:32,052 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:29:32,053 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 05:29:32,371 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3192s
2026-05-03 05:29:37,225 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:29:37,226 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 05:29:37,542 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3163s
2026-05-03 05:30:09,214 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:30:09,215 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:30:09,215 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 05:30:09,655 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4400s
2026-05-03 05:30:33,054 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:30:33,054 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 05:30:33,493 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4394s
2026-05-03 05:30:37,233 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:30:37,234 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 05:30:37,548 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3151s
2026-05-03 05:31:34,058 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:31:34,058 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 05:31:34,500 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4420s
2026-05-03 05:32:09,070 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:32:09,071 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:32:09,071 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 05:32:09,575 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5041s
2026-05-03 05:32:11,402 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:32:11,402 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 05:32:11,717 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3149s
2026-05-03 05:32:35,042 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:32:35,043 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 05:32:35,484 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4421s
2026-05-03 05:33:11,203 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:33:11,203 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 05:33:11,520 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3174s
2026-05-03 05:33:36,047 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:33:36,047 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 05:33:36,363 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3157s
2026-05-03 05:34:11,064 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 05:34:11,064 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:34:11,065 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 05:34:11,231 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:34:11,232 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 05:34:11,450 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3852s
2026-05-03 05:34:11,561 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3299s
2026-05-03 05:35:11,054 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 05:35:11,054 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 05:35:11,371 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3171s
2026-05-03 05:35:43,192 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 05:35:43,455 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 05:35:43,456 - services.database - INFO - Database connections closed
2026-05-03 05:35:43,456 - services.database - DEBUG - [DB_OP] Database close completed in 0.2642s
