2026-04-30 05:03:53,150 - main - INFO - === Logging system initialized ===
2026-04-30 05:03:53,150 - main - INFO - Log file: logs/app_20260430_050353.log
2026-04-30 05:03:53,150 - main - INFO - Log level: INFO
2026-04-30 05:03:53,150 - main - INFO - Timestamp: 20260430_050353
2026-04-30 05:03:53,256 - main - INFO - Included router: routers.agent_availability.router
2026-04-30 05:03:54,138 - main - INFO - Included router: routers.aihub.router
2026-04-30 05:03:54,155 - main - INFO - Included router: routers.auth.router
2026-04-30 05:03:54,207 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-04-30 05:03:54,255 - main - INFO - Included router: routers.chat_attachments.router
2026-04-30 05:03:54,339 - main - INFO - Included router: routers.chat_branding.router
2026-04-30 05:03:54,356 - main - INFO - Included router: routers.chat_branding_api.router
2026-04-30 05:03:54,422 - main - INFO - Included router: routers.chat_conversations.router
2026-04-30 05:03:54,469 - main - INFO - Included router: routers.chat_messages.router
2026-04-30 05:03:54,624 - main - INFO - Included router: routers.chat_routing_rules.router
2026-04-30 05:03:54,646 - main - INFO - Included router: routers.contact.router
2026-04-30 05:03:54,648 - main - INFO - Included router: routers.health.router
2026-04-30 05:03:54,698 - main - INFO - Included router: routers.kb_articles.router
2026-04-30 05:03:54,754 - main - INFO - Included router: routers.plans.router
2026-04-30 05:03:54,776 - main - INFO - Included router: routers.settings.router
2026-04-30 05:03:54,815 - main - INFO - Included router: routers.smtp_settings.router
2026-04-30 05:03:54,850 - main - INFO - Included router: routers.storage.router
2026-04-30 05:03:54,971 - main - INFO - Included router: routers.support_chat.router
2026-04-30 05:03:55,015 - main - INFO - Included router: routers.support_departments.router
2026-04-30 05:03:55,088 - main - INFO - Included router: routers.support_seats.router
2026-04-30 05:03:55,096 - main - INFO - Included router: routers.user.router
2026-04-30 05:03:55,139 - main - INFO - Included router: routers.user_profiles.router
2026-04-30 05:03:55,379 - main - INFO - Included router: routers.whmcs.router
2026-04-30 05:03:55,408 - main - INFO - Included router: routers.whmcs_admin.router
2026-04-30 05:03:55,452 - main - INFO - Included router: routers.whmcs_extra.router
2026-04-30 05:03:55,453 - main - INFO - === Application startup initiated ===
2026-04-30 05:03:55,454 - services.database - INFO - Ignore creating tables
2026-04-30 05:03:55,454 - services.mock_data - INFO - Ignore initialize data
2026-04-30 05:03:55,454 - services.auth - INFO - Ignore initialize admin
2026-04-30 05:03:55,454 - main - INFO - === Application startup completed successfully ===
2026-04-30 05:04:21,960 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 05:04:21,960 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-30 05:04:21,960 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-30 05:04:21,960 - core.database - INFO - Starting database initialization...
2026-04-30 05:04:21,960 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-30 05:04:21,961 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-30 05:04:21,961 - core.database - INFO - Creating async database engine...
2026-04-30 05:04:21,961 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-30 05:04:22,041 - core.database - INFO - Database engine created successfully
2026-04-30 05:04:22,041 - core.database - INFO - Creating async session maker...
2026-04-30 05:04:22,042 - core.database - INFO - Async session maker created successfully
2026-04-30 05:04:22,042 - core.database - INFO - Database connection initialized successfully
2026-04-30 05:04:22,042 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-30 05:04:22,042 - core.database - INFO - 🔧 Starting table creation...
2026-04-30 05:04:22,094 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-04-30 05:04:22,095 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-04-30 05:04:22,111 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 05:04:22,398 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 05:04:22,539 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 05:04:22,540 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-04-30 05:04:22,540 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-04-30 05:04:22,636 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-04-30 05:04:22,644 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f10bc52d2a0>
2026-04-30 05:04:22,645 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f10bc66bcc0> server_hostname='atoms.dev' timeout=120.0
2026-04-30 05:04:22,654 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f10bc52cfd0>
2026-04-30 05:04:22,654 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-04-30 05:04:22,655 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-04-30 05:04:22,655 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-04-30 05:04:22,655 - httpcore.http11 - DEBUG - send_request_body.complete
2026-04-30 05:04:22,656 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-04-30 05:04:22,798 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Thu, 30 Apr 2026 12:04:22 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'287e40e114181aba3236514c39625e63'), (b'X-Trace-Id', b'425ed622c94240b7819e3cc169afe886'), (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'9f46689999c0489a-LAX')])
2026-04-30 05:04:22,799 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-04-30 05:04:22,800 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-04-30 05:04:22,801 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-04-30 05:04:22,801 - httpcore.http11 - DEBUG - response_closed.started
2026-04-30 05:04:22,802 - httpcore.http11 - DEBUG - response_closed.complete
2026-04-30 05:04:22,802 - httpcore.connection - DEBUG - close.started
2026-04-30 05:04:22,803 - httpcore.connection - DEBUG - close.complete
2026-04-30 05:04:24,297 - core.database - INFO - Tables initialized successfully
2026-04-30 05:04:24,298 - core.database - DEBUG - [DB_OP] Create tables completed in 2.2557s
2026-04-30 05:04:24,361 - core.database - INFO - Lazy database initialization completed successfully
2026-04-30 05:04:24,361 - core.database - DEBUG - [DB_OP] Database session created successfully in 2.4016s
2026-04-30 05:04:24,828 - core.database - DEBUG - [DB_OP] Database session cleanup after 2.8684s
2026-04-30 05:05:09,052 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 05:05:09,320 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 05:05:09,363 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-04-30 05:05:09,376 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f10bc52cbe0>
2026-04-30 05:05:09,376 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f10bc5349c0> server_hostname='atoms.dev' timeout=120.0
2026-04-30 05:05:09,383 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f10bc52c490>
2026-04-30 05:05:09,384 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-04-30 05:05:09,384 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-04-30 05:05:09,384 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-04-30 05:05:09,385 - httpcore.http11 - DEBUG - send_request_body.complete
2026-04-30 05:05:09,385 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-04-30 05:05:09,523 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Thu, 30 Apr 2026 12:05:09 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'5ed12f984f54338a43b47dbadd0abb83'), (b'X-Trace-Id', b'7af0060acf5b42aeae50b48d799732ba'), (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'9f4669bdab98314f-LAX')])
2026-04-30 05:05:09,524 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-04-30 05:05:09,524 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-04-30 05:05:09,524 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-04-30 05:05:09,525 - httpcore.http11 - DEBUG - response_closed.started
2026-04-30 05:05:09,525 - httpcore.http11 - DEBUG - response_closed.complete
2026-04-30 05:05:09,525 - httpcore.connection - DEBUG - close.started
2026-04-30 05:05:09,525 - httpcore.connection - DEBUG - close.complete
2026-04-30 05:05:21,942 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 05:05:21,942 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 05:05:22,263 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3207s
2026-04-30 05:06:22,492 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 05:06:22,493 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 05:06:22,809 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3172s
2026-04-30 05:07:22,487 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 05:07:22,487 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-04-30 05:07:22,810 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3236s
2026-04-30 05:09:09,540 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 05:09:09,541 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-04-30 05:09:09,858 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3172s
2026-04-30 05:09:23,661 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 05:09:23,662 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-04-30 05:09:23,978 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3163s
2026-04-30 05:10:43,044 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 05:10:43,045 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 05:10:43,046 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-30 05:10:43,485 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4412s
2026-04-30 05:11:07,958 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-30 05:11:08,026 - core.database - INFO - Database connection closed and engine disposed
2026-04-30 05:11:08,026 - services.database - INFO - Database connections closed
2026-04-30 05:11:08,026 - services.database - DEBUG - [DB_OP] Database close completed in 0.0678s
