2026-04-28 23:07:34,875 - main - INFO - === Logging system initialized ===
2026-04-28 23:07:34,875 - main - INFO - Log file: logs/app_20260428_230734.log
2026-04-28 23:07:34,875 - main - INFO - Log level: INFO
2026-04-28 23:07:34,875 - main - INFO - Timestamp: 20260428_230734
2026-04-28 23:07:35,673 - main - INFO - Included router: routers.aihub.router
2026-04-28 23:07:35,690 - main - INFO - Included router: routers.auth.router
2026-04-28 23:07:35,693 - main - INFO - Included router: routers.health.router
2026-04-28 23:07:35,712 - main - INFO - Included router: routers.settings.router
2026-04-28 23:07:35,753 - main - INFO - Included router: routers.storage.router
2026-04-28 23:07:35,765 - main - INFO - Included router: routers.user.router
2026-04-28 23:07:35,809 - main - INFO - Included router: routers.user_profiles.router
2026-04-28 23:07:35,865 - main - INFO - Included router: routers.whmcs.router
2026-04-28 23:07:35,867 - main - INFO - === Application startup initiated ===
2026-04-28 23:07:35,867 - services.database - INFO - Ignore creating tables
2026-04-28 23:07:35,867 - services.mock_data - INFO - Ignore initialize data
2026-04-28 23:07:35,867 - services.auth - INFO - Ignore initialize admin
2026-04-28 23:07:35,867 - main - INFO - === Application startup completed successfully ===
2026-04-28 23:07:41,206 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 23:11:47,004 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 23:12:01,179 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-28 23:12:01,180 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-28 23:12:01,180 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-28 23:12:01,180 - core.database - INFO - Starting database initialization...
2026-04-28 23:12:01,180 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-28 23:12:01,180 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-28 23:12:01,181 - core.database - INFO - Creating async database engine...
2026-04-28 23:12:01,181 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-28 23:12:01,226 - core.database - INFO - Database engine created successfully
2026-04-28 23:12:01,226 - core.database - INFO - Creating async session maker...
2026-04-28 23:12:01,226 - core.database - INFO - Async session maker created successfully
2026-04-28 23:12:01,227 - core.database - INFO - Database connection initialized successfully
2026-04-28 23:12:01,227 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-28 23:12:01,227 - core.database - INFO - 🔧 Starting table creation...
2026-04-28 23:12:02,601 - core.database - INFO - Tables initialized successfully
2026-04-28 23:12:02,601 - core.database - DEBUG - [DB_OP] Create tables completed in 1.3744s
2026-04-28 23:12:02,664 - core.database - INFO - Lazy database initialization completed successfully
2026-04-28 23:12:02,664 - core.database - DEBUG - [DB_OP] Database session created successfully in 1.4849s
2026-04-28 23:12:03,319 - 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:8000, scheme=https, dynamic_url=https://99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev
2026-04-28 23:12:03,319 - routers.auth - INFO - [login] Starting OIDC flow with redirect_uri=https://99v30-99daa102ba1446f6aa2f99771f457055-preview.app.atoms.dev/api/v1/auth/callback
2026-04-28 23:12:03,320 - core.config - DEBUG - Read dynamic attribute oidc_client_id from environment variable OIDC_CLIENT_ID
2026-04-28 23:12:03,320 - core.config - DEBUG - Read dynamic attribute oidc_scope from environment variable OIDC_SCOPE
2026-04-28 23:12:03,320 - core.config - DEBUG - Read dynamic attribute oidc_issuer_url from environment variable OIDC_ISSUER_URL
2026-04-28 23:12:03,321 - core.database - DEBUG - [DB_OP] Database session cleanup after 2.1411s
2026-04-28 23:12:24,175 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-28 23:13:48,938 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-28 23:13:49,004 - core.database - INFO - Database connection closed and engine disposed
2026-04-28 23:13:49,004 - services.database - INFO - Database connections closed
2026-04-28 23:13:49,005 - services.database - DEBUG - [DB_OP] Database close completed in 0.0670s
