2026-05-03 07:12:07,074 - main - INFO - === Logging system initialized ===
2026-05-03 07:12:07,075 - main - INFO - Log file: logs/app_20260503_071207.log
2026-05-03 07:12:07,075 - main - INFO - Log level: INFO
2026-05-03 07:12:07,075 - main - INFO - Timestamp: 20260503_071207
2026-05-03 07:12:07,162 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 07:12:07,207 - main - INFO - Included router: routers.admin_users.router
2026-05-03 07:12:07,249 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 07:12:08,151 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 07:12:08,176 - main - INFO - Included router: routers.aihub.router
2026-05-03 07:12:08,222 - main - INFO - Included router: routers.api_hub.router
2026-05-03 07:12:08,235 - main - INFO - Included router: routers.audit_log.router
2026-05-03 07:12:08,244 - main - INFO - Included router: routers.auth.router
2026-05-03 07:12:08,259 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 07:12:08,300 - main - INFO - Included router: routers.carts.router
2026-05-03 07:12:08,351 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 07:12:08,399 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 07:12:08,590 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 07:12:08,621 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 07:12:08,676 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 07:12:08,720 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 07:12:08,766 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 07:12:08,793 - main - INFO - Included router: routers.contact.router
2026-05-03 07:12:08,835 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 07:12:08,887 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 07:12:08,889 - main - INFO - Included router: routers.health.router
2026-05-03 07:12:08,946 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 07:12:09,004 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 07:12:09,069 - main - INFO - Included router: routers.local_auth.router
2026-05-03 07:12:09,103 - main - INFO - Included router: routers.mfa.router
2026-05-03 07:12:09,159 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 07:12:09,210 - main - INFO - Included router: routers.notifications.router
2026-05-03 07:12:09,215 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 07:12:09,498 - main - INFO - Included router: routers.oauth.router
2026-05-03 07:12:09,553 - main - INFO - Included router: routers.order_items.router
2026-05-03 07:12:09,609 - main - INFO - Included router: routers.orders.router
2026-05-03 07:12:09,615 - main - INFO - Included router: routers.password_reset.router
2026-05-03 07:12:09,663 - main - INFO - Included router: routers.plans.router
2026-05-03 07:12:09,743 - main - INFO - Included router: routers.presales_messages.router
2026-05-03 07:12:09,787 - main - INFO - Included router: routers.product_categories.router
2026-05-03 07:12:09,834 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 07:12:09,890 - main - INFO - Included router: routers.products.router
2026-05-03 07:12:09,922 - main - INFO - Included router: routers.role_management.router
2026-05-03 07:12:09,968 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 07:12:09,991 - main - INFO - Included router: routers.settings.router
2026-05-03 07:12:10,030 - main - INFO - Included router: routers.site_settings.router
2026-05-03 07:12:10,074 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 07:12:10,120 - main - INFO - Included router: routers.storage.router
2026-05-03 07:12:10,470 - main - INFO - Included router: routers.support_chat.router
2026-05-03 07:12:10,518 - main - INFO - Included router: routers.support_departments.router
2026-05-03 07:12:10,563 - main - INFO - Included router: routers.support_seats.router
2026-05-03 07:12:10,571 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 07:12:10,611 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 07:12:10,654 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 07:12:10,846 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-03 07:12:10,917 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-03 07:12:10,926 - main - INFO - Included router: routers.user.router
2026-05-03 07:12:10,985 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 07:12:11,024 - main - INFO - Included router: routers.user_roles.router
2026-05-03 07:12:11,124 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 07:12:11,135 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 07:12:11,154 - main - INFO - Included router: routers.whmcs.router
2026-05-03 07:12:11,469 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 07:12:11,519 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 07:12:11,521 - main - INFO - === Application startup initiated ===
2026-05-03 07:12:11,521 - services.database - INFO - Ignore creating tables
2026-05-03 07:12:11,521 - services.mock_data - INFO - Ignore initialize data
2026-05-03 07:12:11,522 - services.auth - INFO - Ignore initialize admin
2026-05-03 07:12:11,522 - main - INFO - === Application startup completed successfully ===
2026-05-03 07:12:27,184 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:12:27,185 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 07:12:27,185 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 07:12:27,185 - core.database - INFO - Starting database initialization...
2026-05-03 07:12:27,185 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 07:12:27,185 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 07:12:27,186 - core.database - INFO - Creating async database engine...
2026-05-03 07:12:27,187 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 07:12:27,238 - core.database - INFO - Database engine created successfully
2026-05-03 07:12:27,238 - core.database - INFO - Creating async session maker...
2026-05-03 07:12:27,238 - core.database - INFO - Async session maker created successfully
2026-05-03 07:12:27,239 - core.database - INFO - Database connection initialized successfully
2026-05-03 07:12:27,239 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 07:12:27,239 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 07:12:27,246 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:12:27,247 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 07:12:27,247 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 07:12:27,254 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:12:27,255 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:12:27,258 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:12:27,259 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 07:12:27,259 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 07:12:27,350 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 07:12:27,350 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 07:12:27,366 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:12:27,681 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:12:27,707 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:12:27,708 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-03 07:12:27,708 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-03 07:12:27,810 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 07:12:27,822 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f7f0b93f790>
2026-05-03 07:12:27,823 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f7f097b28c0> server_hostname='atoms.dev' timeout=120.0
2026-05-03 07:12:27,831 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f7f0b93dd80>
2026-05-03 07:12:27,832 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 07:12:27,833 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 07:12:27,833 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 07:12:27,833 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 07:12:27,833 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 07:12:28,000 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 14:12:27 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'd0d14a0231b4d9a3278960f1ed4e98b5'), (b'X-Trace-Id', b'c25572c1f15f4859ad46c795513613f0'), (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'9f5fdc59f8143bb9-LAX')])
2026-05-03 07:12:28,001 - 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 07:12:28,002 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 07:12:28,002 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 07:12:28,003 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 07:12:28,003 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 07:12:28,003 - httpcore.connection - DEBUG - close.started
2026-05-03 07:12:28,004 - httpcore.connection - DEBUG - close.complete
2026-05-03 07:12:28,635 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.3803s
2026-05-03 07:12:28,761 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 07:12:28,762 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.5033s
2026-05-03 07:12:28,762 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 07:12:28,763 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.5164s
2026-05-03 07:12:31,796 - core.database - INFO - Tables initialized successfully
2026-05-03 07:12:31,797 - core.database - DEBUG - [DB_OP] Create tables completed in 4.5579s
2026-05-03 07:12:31,860 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 07:12:31,861 - core.database - DEBUG - [DB_OP] Database session created successfully in 4.6772s
2026-05-03 07:12:31,863 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:12:32,763 - core.database - DEBUG - [DB_OP] Database session cleanup after 5.5786s
2026-05-03 07:12:50,540 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:12:50,541 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 07:12:50,541 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:12:50,568 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:12:50,569 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:12:51,015 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4464s
2026-05-03 07:12:51,436 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8958s
2026-05-03 07:13:27,201 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:13:27,202 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 07:13:27,202 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:13:27,266 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:13:27,266 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 07:13:27,583 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3178s
2026-05-03 07:13:28,097 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8961s
2026-05-03 07:13:51,105 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:13:51,106 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0008s
2026-05-03 07:13:51,433 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3280s
2026-05-03 07:14:27,200 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:14:27,201 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0009s
2026-05-03 07:14:27,202 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:14:27,240 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:14:27,240 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 07:14:27,559 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3188s
2026-05-03 07:14:27,777 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5769s
2026-05-03 07:14:52,113 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:14:52,114 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:14:52,499 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3862s
2026-05-03 07:15:27,222 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:15:27,223 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0008s
2026-05-03 07:15:27,365 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:15:27,365 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 07:15:27,366 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:15:27,545 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3228s
2026-05-03 07:15:28,006 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.6414s
2026-05-03 07:15:53,104 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:15:53,104 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:15:53,486 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3828s
2026-05-03 07:16:27,204 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:16:27,204 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 07:16:27,205 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:16:27,237 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:16:27,238 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 07:16:27,558 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3209s
2026-05-03 07:16:27,780 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5762s
2026-05-03 07:16:54,101 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:16:54,102 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:16:54,419 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3179s
2026-05-03 07:17:28,115 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:17:28,116 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:17:28,117 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:17:28,118 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:17:28,119 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 07:17:28,437 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3182s
2026-05-03 07:17:28,694 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5790s
2026-05-03 07:17:55,113 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:17:55,114 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:17:55,436 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3228s
2026-05-03 07:18:28,109 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:18:28,109 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 07:18:28,552 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4430s
2026-05-03 07:18:56,112 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:18:56,112 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 07:18:56,558 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4458s
2026-05-03 07:19:28,099 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:19:28,100 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:19:28,100 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:19:28,251 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:19:28,251 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-03 07:19:28,695 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4442s
2026-05-03 07:19:28,806 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7073s
2026-05-03 07:19:57,112 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:19:57,113 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:19:57,431 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3182s
2026-05-03 07:20:28,142 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:20:28,143 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0008s
2026-05-03 07:20:28,464 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3218s
2026-05-03 07:20:51,103 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:20:51,104 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:20:51,421 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3171s
2026-05-03 07:21:28,107 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:21:28,107 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 07:21:28,108 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 07:21:28,110 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 07:21:28,110 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 07:21:28,426 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3162s
2026-05-03 07:21:28,684 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5776s
2026-05-03 07:21:32,726 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 07:21:33,000 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 07:21:33,000 - services.database - INFO - Database connections closed
2026-05-03 07:21:33,000 - services.database - DEBUG - [DB_OP] Database close completed in 0.2741s
