2026-05-03 06:14:45,887 - main - INFO - === Logging system initialized ===
2026-05-03 06:14:45,887 - main - INFO - Log file: logs/app_20260503_061445.log
2026-05-03 06:14:45,887 - main - INFO - Log level: INFO
2026-05-03 06:14:45,887 - main - INFO - Timestamp: 20260503_061445
2026-05-03 06:14:47,441 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 06:14:47,600 - main - INFO - Included router: routers.admin_users.router
2026-05-03 06:14:47,817 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 06:15:10,994 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 06:15:11,238 - main - INFO - Included router: routers.aihub.router
2026-05-03 06:15:11,415 - main - INFO - Included router: routers.api_hub.router
2026-05-03 06:15:11,615 - main - INFO - Included router: routers.audit_log.router
2026-05-03 06:15:11,641 - main - INFO - Included router: routers.auth.router
2026-05-03 06:15:11,787 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 06:15:11,916 - main - INFO - Included router: routers.carts.router
2026-05-03 06:15:12,198 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 06:15:12,310 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 06:15:12,566 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 06:15:12,700 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 06:15:12,849 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 06:15:12,985 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 06:15:13,137 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 06:15:13,483 - main - INFO - Included router: routers.contact.router
2026-05-03 06:15:13,910 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 06:15:14,837 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 06:15:14,872 - main - INFO - Included router: routers.health.router
2026-05-03 06:15:15,011 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 06:15:15,242 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 06:15:15,489 - main - INFO - Included router: routers.local_auth.router
2026-05-03 06:15:15,609 - main - INFO - Included router: routers.mfa.router
2026-05-03 06:15:15,747 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 06:15:15,945 - main - INFO - Included router: routers.notifications.router
2026-05-03 06:15:16,030 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 06:15:16,524 - main - INFO - Included router: routers.oauth.router
2026-05-03 06:15:16,666 - main - INFO - Included router: routers.order_items.router
2026-05-03 06:15:16,787 - main - INFO - Included router: routers.orders.router
2026-05-03 06:15:16,844 - main - INFO - Included router: routers.password_reset.router
2026-05-03 06:15:16,957 - main - INFO - Included router: routers.plans.router
2026-05-03 06:15:17,240 - main - INFO - Included router: routers.product_categories.router
2026-05-03 06:15:17,417 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 06:15:17,683 - main - INFO - Included router: routers.products.router
2026-05-03 06:15:17,736 - main - INFO - Included router: routers.role_management.router
2026-05-03 06:15:17,860 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 06:15:18,067 - main - INFO - Included router: routers.settings.router
2026-05-03 06:15:18,287 - main - INFO - Included router: routers.site_settings.router
2026-05-03 06:15:18,453 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 06:15:18,710 - main - INFO - Included router: routers.storage.router
2026-05-03 06:15:19,074 - main - INFO - Included router: routers.support_chat.router
2026-05-03 06:15:19,222 - main - INFO - Included router: routers.support_departments.router
2026-05-03 06:15:19,514 - main - INFO - Included router: routers.support_seats.router
2026-05-03 06:15:19,554 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 06:15:19,653 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 06:15:19,757 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 06:15:20,276 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-03 06:15:20,375 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-03 06:15:20,463 - main - INFO - Included router: routers.user.router
2026-05-03 06:15:20,568 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 06:15:20,709 - main - INFO - Included router: routers.user_roles.router
2026-05-03 06:15:21,013 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 06:15:21,084 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 06:15:21,104 - main - INFO - Included router: routers.whmcs.router
2026-05-03 06:15:21,236 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 06:15:21,580 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 06:15:21,582 - main - INFO - === Application startup initiated ===
2026-05-03 06:15:21,583 - services.database - INFO - Ignore creating tables
2026-05-03 06:15:21,583 - services.mock_data - INFO - Ignore initialize data
2026-05-03 06:15:21,583 - services.auth - INFO - Ignore initialize admin
2026-05-03 06:15:21,584 - main - INFO - === Application startup completed successfully ===
2026-05-03 06:15:48,485 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:15:48,486 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 06:15:48,486 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 06:15:48,486 - core.database - INFO - Starting database initialization...
2026-05-03 06:15:48,486 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 06:15:48,486 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 06:15:48,488 - core.database - INFO - Creating async database engine...
2026-05-03 06:15:48,488 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 06:15:48,540 - core.database - INFO - Database engine created successfully
2026-05-03 06:15:48,540 - core.database - INFO - Creating async session maker...
2026-05-03 06:15:48,540 - core.database - INFO - Async session maker created successfully
2026-05-03 06:15:48,540 - core.database - INFO - Database connection initialized successfully
2026-05-03 06:15:48,540 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 06:15:48,540 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 06:15:48,551 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:15:48,552 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0009s
2026-05-03 06:15:48,566 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:15:48,566 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 06:15:48,567 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:15:48,570 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:15:48,571 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 06:15:48,571 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:15:48,708 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 06:15:48,708 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 06:15:48,950 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:15:49,252 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:15:49,317 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:15:49,318 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-03 06:15:49,318 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-03 06:15:51,867 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 06:15:51,874 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fad1eee70a0>
2026-05-03 06:15:51,875 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fad1cd3f740> server_hostname='atoms.dev' timeout=120.0
2026-05-03 06:15:51,883 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fad1eee7f70>
2026-05-03 06:15:51,886 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 06:15:51,886 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 06:15:51,886 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 06:15:51,887 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 06:15:51,887 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 06:15:52,067 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 13:15:52 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'f239422a563ab93bbd48e066bd2540ad'), (b'X-Trace-Id', b'032930005f73439880d038648e70427b'), (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'9f5f89714cf1f6b1-LAX')])
2026-05-03 06:15:52,068 - 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 06:15:52,068 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 06:15:52,069 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 06:15:52,069 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 06:15:52,069 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 06:15:52,070 - httpcore.connection - DEBUG - close.started
2026-05-03 06:15:52,070 - httpcore.connection - DEBUG - close.complete
2026-05-03 06:15:52,571 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.0199s
2026-05-03 06:15:52,703 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:15:52,705 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.1391s
2026-05-03 06:15:52,706 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:15:52,707 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.1367s
2026-05-03 06:15:55,679 - core.database - INFO - Tables initialized successfully
2026-05-03 06:15:55,680 - core.database - DEBUG - [DB_OP] Create tables completed in 7.1393s
2026-05-03 06:15:55,744 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 06:15:55,744 - core.database - DEBUG - [DB_OP] Database session created successfully in 7.2591s
2026-05-03 06:15:55,746 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:15:56,691 - core.database - DEBUG - [DB_OP] Database session cleanup after 8.2058s
2026-05-03 06:16:10,483 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:10,483 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-03 06:16:10,567 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-05-03 06:16:10,570 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:10,570 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 06:16:10,580 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:10,581 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-03 06:16:10,582 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:16:10,585 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:10,585 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 06:16:10,586 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:16:11,019 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4496s
2026-05-03 06:16:11,075 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:11,075 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 06:16:11,127 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:16:11,127 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:11,128 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0008s
2026-05-03 06:16:11,133 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:16:11,135 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5501s
2026-05-03 06:16:11,199 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:16:11,200 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.6195s
2026-05-03 06:16:11,572 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.0896s
2026-05-03 06:16:11,739 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.6641s
2026-05-03 06:16:11,849 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7217s
2026-05-03 06:16:28,690 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 06:16:29,086 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 06:16:29,086 - services.database - INFO - Database connections closed
2026-05-03 06:16:29,087 - services.database - DEBUG - [DB_OP] Database close completed in 0.3970s
