2026-04-28 22:34:21,724 - main - INFO - === Logging system initialized ===
2026-04-28 22:34:21,725 - main - INFO - Log file: logs/app_20260428_223421.log
2026-04-28 22:34:21,725 - main - INFO - Log level: INFO
2026-04-28 22:34:21,725 - main - INFO - Timestamp: 20260428_223421
2026-04-28 22:34:22,563 - main - INFO - Included router: routers.aihub.router
2026-04-28 22:34:22,579 - main - INFO - Included router: routers.auth.router
2026-04-28 22:34:22,582 - main - INFO - Included router: routers.health.router
2026-04-28 22:34:22,602 - main - INFO - Included router: routers.settings.router
2026-04-28 22:34:22,640 - main - INFO - Included router: routers.storage.router
2026-04-28 22:34:22,648 - main - INFO - Included router: routers.user.router
2026-04-28 22:34:22,695 - main - INFO - Included router: routers.user_profiles.router
2026-04-28 22:34:22,744 - main - INFO - Included router: routers.whmcs.router
2026-04-28 22:34:22,746 - main - INFO - === Application startup initiated ===
2026-04-28 22:34:22,746 - services.database - INFO - Ignore creating tables
2026-04-28 22:34:22,746 - services.mock_data - INFO - Ignore initialize data
2026-04-28 22:34:22,746 - services.auth - INFO - Ignore initialize admin
2026-04-28 22:34:22,747 - main - INFO - === Application startup completed successfully ===
2026-04-28 22:34:27,612 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:37:13,152 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:37:36,795 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:39:46,890 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:40:07,767 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:41:20,807 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:43:04,566 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:43:11,670 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:43:22,636 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:43:38,597 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:43:57,290 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:44:02,421 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:44:02,475 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/whmcs/me
2026-04-28 22:44:02,667 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:44:05,188 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-28 22:44:05,188 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-28 22:44:05,189 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-28 22:44:05,189 - core.database - INFO - Starting database initialization...
2026-04-28 22:44:05,189 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-28 22:44:05,189 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-28 22:44:05,190 - core.database - INFO - Creating async database engine...
2026-04-28 22:44:05,191 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-28 22:44:05,237 - core.database - INFO - Database engine created successfully
2026-04-28 22:44:05,237 - core.database - INFO - Creating async session maker...
2026-04-28 22:44:05,238 - core.database - INFO - Async session maker created successfully
2026-04-28 22:44:05,238 - core.database - INFO - Database connection initialized successfully
2026-04-28 22:44:05,238 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-28 22:44:05,238 - core.database - INFO - 🔧 Starting table creation...
2026-04-28 22:44:07,235 - core.database - INFO - Tables initialized successfully
2026-04-28 22:44:07,236 - core.database - DEBUG - [DB_OP] Create tables completed in 1.9973s
2026-04-28 22:44:07,299 - core.database - INFO - Lazy database initialization completed successfully
2026-04-28 22:44:07,299 - core.database - DEBUG - [DB_OP] Database session created successfully in 2.1114s
2026-04-28 22:44:07,968 - 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:8002, scheme=https, dynamic_url=https://99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev
2026-04-28 22:44:07,969 - routers.auth - INFO - [login] Starting OIDC flow with redirect_uri=https://99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev/api/v1/auth/callback
2026-04-28 22:44:07,969 - core.config - DEBUG - Read dynamic attribute oidc_client_id from environment variable OIDC_CLIENT_ID
2026-04-28 22:44:07,969 - core.config - DEBUG - Read dynamic attribute oidc_scope from environment variable OIDC_SCOPE
2026-04-28 22:44:07,969 - core.config - DEBUG - Read dynamic attribute oidc_issuer_url from environment variable OIDC_ISSUER_URL
2026-04-28 22:44:07,970 - core.database - DEBUG - [DB_OP] Database session cleanup after 2.7818s
2026-04-28 22:45:22,982 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 22:53:10,543 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-28 22:53:10,544 - core.database - INFO - Database connection closed and engine disposed
2026-04-28 22:53:10,544 - services.database - INFO - Database connections closed
2026-04-28 22:53:10,544 - services.database - DEBUG - [DB_OP] Database close completed in 0.0014s
