2026-04-28 10:11:04,357 - main - INFO - === Logging system initialized ===
2026-04-28 10:11:04,357 - main - INFO - Log file: logs/app_20260428_101104.log
2026-04-28 10:11:04,357 - main - INFO - Log level: INFO
2026-04-28 10:11:04,358 - main - INFO - Timestamp: 20260428_101104
2026-04-28 10:11:05,594 - main - INFO - Included router: routers.aihub.router
2026-04-28 10:11:05,616 - main - INFO - Included router: routers.auth.router
2026-04-28 10:11:05,619 - main - INFO - Included router: routers.health.router
2026-04-28 10:11:05,639 - main - INFO - Included router: routers.settings.router
2026-04-28 10:11:05,686 - main - INFO - Included router: routers.storage.router
2026-04-28 10:11:05,696 - main - INFO - Included router: routers.user.router
2026-04-28 10:11:05,747 - main - INFO - Included router: routers.user_profiles.router
2026-04-28 10:11:05,795 - main - INFO - Included router: routers.whmcs.router
2026-04-28 10:11:05,798 - main - INFO - === Application startup initiated ===
2026-04-28 10:11:05,798 - services.database - INFO - Ignore creating tables
2026-04-28 10:11:05,798 - services.mock_data - INFO - Ignore initialize data
2026-04-28 10:11:05,798 - services.auth - INFO - Ignore initialize admin
2026-04-28 10:11:05,798 - main - INFO - === Application startup completed successfully ===
2026-04-28 10:11:13,558 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-04-28 10:11:13,558 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-04-28 10:11:13,570 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-04-28 10:11:13,880 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-04-28 10:11:13,881 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-04-28 10:11:13,881 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-04-28 10:11:13,975 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-04-28 10:11:13,990 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fe6b22181f0>
2026-04-28 10:11:13,991 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fe6b2b4ab40> server_hostname='atoms.dev' timeout=120.0
2026-04-28 10:11:14,001 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fe6b22180a0>
2026-04-28 10:11:14,001 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-04-28 10:11:14,002 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-04-28 10:11:14,002 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-04-28 10:11:14,002 - httpcore.http11 - DEBUG - send_request_body.complete
2026-04-28 10:11:14,002 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-04-28 10:11:14,450 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Tue, 28 Apr 2026 17:11:14 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'0591f99719b0321676227a933cc9903c'), (b'X-Trace-Id', b'450ef7e06eac4b9d8a5b5f24fe587e4d'), (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'9f37af588960f7c7-LAX')])
2026-04-28 10:11:14,451 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-04-28 10:11:14,451 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-04-28 10:11:14,452 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-04-28 10:11:14,453 - httpcore.http11 - DEBUG - response_closed.started
2026-04-28 10:11:14,453 - httpcore.http11 - DEBUG - response_closed.complete
2026-04-28 10:11:14,454 - httpcore.connection - DEBUG - close.started
2026-04-28 10:11:14,454 - httpcore.connection - DEBUG - close.complete
2026-04-28 10:11:24,446 - core.config - DEBUG - Read dynamic attribute frontend_url from environment variable FRONTEND_URL
2026-04-28 10:11:24,447 - core.config - DEBUG - Read dynamic attribute oidc_issuer_url from environment variable OIDC_ISSUER_URL
2026-04-28 10:11:26,857 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 10:11:28,702 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-28 10:11:28,702 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-28 10:11:28,704 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-28 10:11:28,704 - core.database - INFO - Starting database initialization...
2026-04-28 10:11:28,704 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-28 10:11:28,705 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-28 10:11:28,706 - core.database - INFO - Creating async database engine...
2026-04-28 10:11:28,706 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-28 10:11:28,762 - core.database - INFO - Database engine created successfully
2026-04-28 10:11:28,762 - core.database - INFO - Creating async session maker...
2026-04-28 10:11:28,762 - core.database - INFO - Async session maker created successfully
2026-04-28 10:11:28,762 - core.database - INFO - Database connection initialized successfully
2026-04-28 10:11:28,762 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-28 10:11:28,762 - core.database - INFO - 🔧 Starting table creation...
2026-04-28 10:11:30,146 - core.database - INFO - Tables initialized successfully
2026-04-28 10:11:30,147 - core.database - DEBUG - [DB_OP] Create tables completed in 1.3846s
2026-04-28 10:11:30,211 - core.database - INFO - Lazy database initialization completed successfully
2026-04-28 10:11:30,212 - core.database - DEBUG - [DB_OP] Database session created successfully in 1.5095s
2026-04-28 10:11:30,858 - routers.auth - DEBUG - [get_dynamic_backend_url] mgx-external-domain=None, x-forwarded-host=99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev, host=127.0.0.1:8001, scheme=https, dynamic_url=https://99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev
2026-04-28 10:11:30,858 - routers.auth - INFO - [login] Starting OIDC flow with redirect_uri=https://99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev/api/v1/auth/callback
2026-04-28 10:11:30,859 - core.config - DEBUG - Read dynamic attribute oidc_client_id from environment variable OIDC_CLIENT_ID
2026-04-28 10:11:30,859 - core.config - DEBUG - Read dynamic attribute oidc_scope from environment variable OIDC_SCOPE
2026-04-28 10:11:30,859 - core.database - DEBUG - [DB_OP] Database session cleanup after 2.1569s
2026-04-28 10:11:31,976 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-28 10:11:31,977 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-04-28 10:11:32,422 - routers.auth - DEBUG - [get_dynamic_backend_url] mgx-external-domain=None, x-forwarded-host=99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev, host=127.0.0.1:8001, scheme=https, dynamic_url=https://99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev
2026-04-28 10:11:32,423 - routers.auth - INFO - [login] Starting OIDC flow with redirect_uri=https://99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev/api/v1/auth/callback
2026-04-28 10:11:32,424 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4476s
2026-04-28 10:11:38,152 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 10:11:38,311 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-28 10:11:38,378 - core.database - INFO - Database connection closed and engine disposed
2026-04-28 10:11:38,379 - services.database - INFO - Database connections closed
2026-04-28 10:11:38,379 - services.database - DEBUG - [DB_OP] Database close completed in 0.0680s
