2026-04-30 03:58:05,958 - main - INFO - === Logging system initialized ===
2026-04-30 03:58:05,959 - main - INFO - Log file: logs/app_20260430_035805.log
2026-04-30 03:58:05,959 - main - INFO - Log level: INFO
2026-04-30 03:58:05,959 - main - INFO - Timestamp: 20260430_035805
2026-04-30 03:58:06,104 - main - INFO - Included router: routers.agent_availability.router
2026-04-30 03:58:07,085 - main - INFO - Included router: routers.aihub.router
2026-04-30 03:58:07,113 - main - INFO - Included router: routers.auth.router
2026-04-30 03:58:07,179 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-04-30 03:58:07,240 - main - INFO - Included router: routers.chat_attachments.router
2026-04-30 03:58:07,324 - main - INFO - Included router: routers.chat_branding.router
2026-04-30 03:58:07,344 - main - INFO - Included router: routers.chat_branding_api.router
2026-04-30 03:58:07,407 - main - INFO - Included router: routers.chat_conversations.router
2026-04-30 03:58:07,462 - main - INFO - Included router: routers.chat_messages.router
2026-04-30 03:58:07,603 - main - INFO - Included router: routers.chat_routing_rules.router
2026-04-30 03:58:07,643 - main - INFO - Included router: routers.contact.router
2026-04-30 03:58:07,646 - main - INFO - Included router: routers.health.router
2026-04-30 03:58:07,706 - main - INFO - Included router: routers.kb_articles.router
2026-04-30 03:58:07,774 - main - INFO - Included router: routers.plans.router
2026-04-30 03:58:07,805 - main - INFO - Included router: routers.settings.router
2026-04-30 03:58:07,852 - main - INFO - Included router: routers.smtp_settings.router
2026-04-30 03:58:07,890 - main - INFO - Included router: routers.storage.router
2026-04-30 03:58:08,004 - main - INFO - Included router: routers.support_chat.router
2026-04-30 03:58:08,086 - main - INFO - Included router: routers.support_departments.router
2026-04-30 03:58:08,130 - main - INFO - Included router: routers.support_seats.router
2026-04-30 03:58:08,138 - main - INFO - Included router: routers.user.router
2026-04-30 03:58:08,189 - main - INFO - Included router: routers.user_profiles.router
2026-04-30 03:58:08,410 - main - INFO - Included router: routers.whmcs.router
2026-04-30 03:58:08,444 - main - INFO - Included router: routers.whmcs_admin.router
2026-04-30 03:58:08,493 - main - INFO - Included router: routers.whmcs_extra.router
2026-04-30 03:58:08,495 - main - INFO - === Application startup initiated ===
2026-04-30 03:58:08,496 - services.database - INFO - Ignore creating tables
2026-04-30 03:58:08,496 - services.mock_data - INFO - Ignore initialize data
2026-04-30 03:58:08,497 - services.auth - INFO - Ignore initialize admin
2026-04-30 03:58:08,497 - main - INFO - === Application startup completed successfully ===
2026-04-30 03:59:24,003 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 03:59:24,004 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-30 03:59:24,005 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-30 03:59:24,005 - core.database - INFO - Starting database initialization...
2026-04-30 03:59:24,005 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-30 03:59:24,006 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-30 03:59:24,007 - core.database - INFO - Creating async database engine...
2026-04-30 03:59:24,008 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-30 03:59:24,088 - core.database - INFO - Database engine created successfully
2026-04-30 03:59:24,089 - core.database - INFO - Creating async session maker...
2026-04-30 03:59:24,089 - core.database - INFO - Async session maker created successfully
2026-04-30 03:59:24,089 - core.database - INFO - Database connection initialized successfully
2026-04-30 03:59:24,089 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-30 03:59:24,089 - core.database - INFO - 🔧 Starting table creation...
2026-04-30 03:59:24,102 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-04-30 03:59:24,102 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-04-30 03:59:24,114 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 03:59:24,372 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 03:59:24,527 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 03:59:24,527 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-04-30 03:59:24,528 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-04-30 03:59:24,627 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-04-30 03:59:24,636 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f9ffc7412a0>
2026-04-30 03:59:24,636 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f9ffc683d40> server_hostname='atoms.dev' timeout=120.0
2026-04-30 03:59:24,644 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f9ffc741000>
2026-04-30 03:59:24,645 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-04-30 03:59:24,645 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-04-30 03:59:24,645 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-04-30 03:59:24,646 - httpcore.http11 - DEBUG - send_request_body.complete
2026-04-30 03:59:24,646 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-04-30 03:59:24,783 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Thu, 30 Apr 2026 10:59:24 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'ea62c42968d25ff8db9e444e005bbe4d'), (b'X-Trace-Id', b'5cc2db37e53a421686f490c0ee1f1e3c'), (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'9f46096f0acf999a-LAX')])
2026-04-30 03:59:24,784 - 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 03:59:24,785 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-04-30 03:59:24,785 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-04-30 03:59:24,786 - httpcore.http11 - DEBUG - response_closed.started
2026-04-30 03:59:24,786 - httpcore.http11 - DEBUG - response_closed.complete
2026-04-30 03:59:24,787 - httpcore.connection - DEBUG - close.started
2026-04-30 03:59:24,787 - httpcore.connection - DEBUG - close.complete
2026-04-30 03:59:26,352 - core.database - INFO - Tables initialized successfully
2026-04-30 03:59:26,353 - core.database - DEBUG - [DB_OP] Create tables completed in 2.2640s
2026-04-30 03:59:26,417 - core.database - INFO - Lazy database initialization completed successfully
2026-04-30 03:59:26,417 - core.database - DEBUG - [DB_OP] Database session created successfully in 2.4139s
2026-04-30 03:59:26,879 - core.database - DEBUG - [DB_OP] Database session cleanup after 2.8757s
2026-04-30 04:00:24,573 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:00:24,574 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-04-30 04:00:24,895 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3218s
2026-04-30 04:01:24,574 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:01:24,574 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:01:24,893 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3193s
2026-04-30 04:02:24,472 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:02:24,473 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:02:24,792 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3199s
2026-04-30 04:03:24,452 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:03:24,453 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:03:24,771 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3187s
2026-04-30 04:04:24,607 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:04:24,607 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:04:24,930 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3232s
2026-04-30 04:05:24,450 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:05:24,450 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:05:24,895 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4448s
2026-04-30 04:07:14,466 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:07:14,467 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:07:14,784 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3171s
2026-04-30 04:08:14,578 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:08:14,578 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:08:14,896 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3181s
2026-04-30 04:09:14,459 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:09:14,460 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:09:14,786 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3264s
2026-04-30 04:10:14,452 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:10:14,452 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:10:14,772 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3205s
2026-04-30 04:11:14,466 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:11:14,467 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:11:14,914 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4474s
2026-04-30 04:12:14,462 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:12:14,462 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:12:14,782 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3201s
2026-04-30 04:13:14,459 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:13:14,459 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:13:14,784 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3256s
2026-04-30 04:14:14,457 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:14:14,457 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 04:14:14,776 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3197s
2026-04-30 04:15:14,457 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:15:14,457 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:15:14,776 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3194s
2026-04-30 04:16:14,458 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:16:14,458 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 04:16:14,777 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3194s
2026-04-30 04:17:14,645 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 04:17:14,646 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-04-30 04:17:15,090 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4449s
2026-04-30 04:18:07,838 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-30 04:18:07,905 - core.database - INFO - Database connection closed and engine disposed
2026-04-30 04:18:07,905 - services.database - INFO - Database connections closed
2026-04-30 04:18:07,905 - services.database - DEBUG - [DB_OP] Database close completed in 0.0674s
