2026-04-30 04:36:26,044 - main - INFO - === Logging system initialized ===
2026-04-30 04:36:26,045 - main - INFO - Log file: logs/app_20260430_043626.log
2026-04-30 04:36:26,045 - main - INFO - Log level: INFO
2026-04-30 04:36:26,045 - main - INFO - Timestamp: 20260430_043626
2026-04-30 04:36:26,127 - main - INFO - Included router: routers.agent_availability.router
2026-04-30 04:36:26,971 - main - INFO - Included router: routers.aihub.router
2026-04-30 04:36:26,995 - main - INFO - Included router: routers.auth.router
2026-04-30 04:36:27,049 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-04-30 04:36:27,106 - main - INFO - Included router: routers.chat_attachments.router
2026-04-30 04:36:27,173 - main - INFO - Included router: routers.chat_branding.router
2026-04-30 04:36:27,186 - main - INFO - Included router: routers.chat_branding_api.router
2026-04-30 04:36:27,246 - main - INFO - Included router: routers.chat_conversations.router
2026-04-30 04:36:27,291 - main - INFO - Included router: routers.chat_messages.router
2026-04-30 04:36:27,448 - main - INFO - Included router: routers.chat_routing_rules.router
2026-04-30 04:36:27,483 - main - INFO - Included router: routers.contact.router
2026-04-30 04:36:27,485 - main - INFO - Included router: routers.health.router
2026-04-30 04:36:27,531 - main - INFO - Included router: routers.kb_articles.router
2026-04-30 04:36:27,591 - main - INFO - Included router: routers.plans.router
2026-04-30 04:36:27,615 - main - INFO - Included router: routers.settings.router
2026-04-30 04:36:27,657 - main - INFO - Included router: routers.smtp_settings.router
2026-04-30 04:36:27,703 - main - INFO - Included router: routers.storage.router
2026-04-30 04:36:27,835 - main - INFO - Included router: routers.support_chat.router
2026-04-30 04:36:27,881 - main - INFO - Included router: routers.support_departments.router
2026-04-30 04:36:27,926 - main - INFO - Included router: routers.support_seats.router
2026-04-30 04:36:27,939 - main - INFO - Included router: routers.user.router
2026-04-30 04:36:27,990 - main - INFO - Included router: routers.user_profiles.router
2026-04-30 04:36:28,287 - main - INFO - Included router: routers.whmcs.router
2026-04-30 04:36:28,315 - main - INFO - Included router: routers.whmcs_admin.router
2026-04-30 04:36:28,357 - main - INFO - Included router: routers.whmcs_extra.router
2026-04-30 04:36:28,359 - main - INFO - === Application startup initiated ===
2026-04-30 04:36:28,359 - services.database - INFO - Ignore creating tables
2026-04-30 04:36:28,359 - services.mock_data - INFO - Ignore initialize data
2026-04-30 04:36:28,359 - services.auth - INFO - Ignore initialize admin
2026-04-30 04:36:28,359 - main - INFO - === Application startup completed successfully ===
2026-04-30 04:36:44,627 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-04-30 04:36:44,627 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-04-30 04:36:44,637 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 04:36:44,654 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:36:44,654 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-30 04:36:44,654 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-30 04:36:44,654 - core.database - INFO - Starting database initialization...
2026-04-30 04:36:44,654 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-30 04:36:44,655 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-30 04:36:44,656 - core.database - INFO - Creating async database engine...
2026-04-30 04:36:44,656 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-30 04:36:44,705 - core.database - INFO - Database engine created successfully
2026-04-30 04:36:44,705 - core.database - INFO - Creating async session maker...
2026-04-30 04:36:44,705 - core.database - INFO - Async session maker created successfully
2026-04-30 04:36:44,705 - core.database - INFO - Database connection initialized successfully
2026-04-30 04:36:44,705 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-30 04:36:44,705 - core.database - INFO - 🔧 Starting table creation...
2026-04-30 04:36:44,888 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 04:36:44,897 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 04:36:44,897 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-04-30 04:36:44,897 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-04-30 04:36:44,980 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-04-30 04:36:44,987 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fda4e092530>
2026-04-30 04:36:44,987 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fda4e0afbc0> server_hostname='atoms.dev' timeout=120.0
2026-04-30 04:36:44,995 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fda4e091690>
2026-04-30 04:36:44,996 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-04-30 04:36:44,996 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-04-30 04:36:44,996 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-04-30 04:36:44,997 - httpcore.http11 - DEBUG - send_request_body.complete
2026-04-30 04:36:44,997 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-04-30 04:36:45,191 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Thu, 30 Apr 2026 11:36:45 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'1c90a1a1fc1b9f706c62c7575b822e84'), (b'X-Trace-Id', b'c26c60eef4e04db595d6e7f60c18192f'), (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'9f464021394e2f52-LAX')])
2026-04-30 04:36:45,192 - 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 04:36:45,192 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-04-30 04:36:45,193 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-04-30 04:36:45,193 - httpcore.http11 - DEBUG - response_closed.started
2026-04-30 04:36:45,193 - httpcore.http11 - DEBUG - response_closed.complete
2026-04-30 04:36:45,193 - httpcore.connection - DEBUG - close.started
2026-04-30 04:36:45,194 - httpcore.connection - DEBUG - close.complete
2026-04-30 04:36:46,997 - core.database - INFO - Tables initialized successfully
2026-04-30 04:36:46,997 - core.database - DEBUG - [DB_OP] Create tables completed in 2.2919s
2026-04-30 04:36:47,061 - core.database - INFO - Lazy database initialization completed successfully
2026-04-30 04:36:47,061 - core.database - DEBUG - [DB_OP] Database session created successfully in 2.4077s
2026-04-30 04:36:47,520 - core.database - DEBUG - [DB_OP] Database session cleanup after 2.8662s
2026-04-30 04:37:45,615 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:37:45,615 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:37:45,933 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3186s
2026-04-30 04:38:44,662 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:38:44,663 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:38:44,993 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3305s
2026-04-30 04:39:02,395 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 04:39:02,705 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 04:39:02,732 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-04-30 04:39:02,743 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fda47e08d00>
2026-04-30 04:39:02,744 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fda47f1ebc0> server_hostname='atoms.dev' timeout=120.0
2026-04-30 04:39:02,751 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fda47e08640>
2026-04-30 04:39:02,752 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-04-30 04:39:02,752 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-04-30 04:39:02,753 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-04-30 04:39:02,753 - httpcore.http11 - DEBUG - send_request_body.complete
2026-04-30 04:39:02,753 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-04-30 04:39:02,899 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Thu, 30 Apr 2026 11:39: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'd2d7ffe8f011c662659d6dc24a67202e'), (b'X-Trace-Id', b'd2eb4a8cebcc4b4ba70a45748300f86a'), (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'9f46437e3ea4e9e0-LAX')])
2026-04-30 04:39:02,900 - 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 04:39:02,900 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-04-30 04:39:02,900 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-04-30 04:39:02,901 - httpcore.http11 - DEBUG - response_closed.started
2026-04-30 04:39:02,901 - httpcore.http11 - DEBUG - response_closed.complete
2026-04-30 04:39:02,901 - httpcore.connection - DEBUG - close.started
2026-04-30 04:39:02,901 - httpcore.connection - DEBUG - close.complete
2026-04-30 04:39:45,463 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:39:45,464 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:39:45,782 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3184s
2026-04-30 04:40:45,472 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:40:45,472 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:40:45,790 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3178s
2026-04-30 04:41:45,550 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:41:45,550 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:41:45,869 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3188s
2026-04-30 04:42:45,486 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:42:45,487 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:42:45,931 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4443s
2026-04-30 04:44:00,739 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:44:00,740 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:44:01,056 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3165s
2026-04-30 04:44:45,481 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:44:45,482 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:44:45,798 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3166s
2026-04-30 04:45:45,475 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:45:45,476 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-04-30 04:45:45,795 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3195s
2026-04-30 04:48:06,143 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 04:48:11,128 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-30 04:48:11,197 - core.database - INFO - Database connection closed and engine disposed
2026-04-30 04:48:11,198 - services.database - INFO - Database connections closed
2026-04-30 04:48:11,198 - services.database - DEBUG - [DB_OP] Database close completed in 0.0694s
