2026-04-30 07:31:25,366 - main - INFO - === Logging system initialized ===
2026-04-30 07:31:25,366 - main - INFO - Log file: logs/app_20260430_073125.log
2026-04-30 07:31:25,366 - main - INFO - Log level: INFO
2026-04-30 07:31:25,366 - main - INFO - Timestamp: 20260430_073125
2026-04-30 07:31:25,463 - main - INFO - Included router: routers.agent_availability.router
2026-04-30 07:31:26,358 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-04-30 07:31:26,379 - main - INFO - Included router: routers.aihub.router
2026-04-30 07:31:26,392 - main - INFO - Included router: routers.auth.router
2026-04-30 07:31:26,439 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-04-30 07:31:26,486 - main - INFO - Included router: routers.chat_attachments.router
2026-04-30 07:31:26,552 - main - INFO - Included router: routers.chat_branding.router
2026-04-30 07:31:26,566 - main - INFO - Included router: routers.chat_branding_api.router
2026-04-30 07:31:26,618 - main - INFO - Included router: routers.chat_conversations.router
2026-04-30 07:31:26,659 - main - INFO - Included router: routers.chat_messages.router
2026-04-30 07:31:26,805 - main - INFO - Included router: routers.chat_routing_rules.router
2026-04-30 07:31:26,851 - main - INFO - Included router: routers.contact.router
2026-04-30 07:31:26,855 - main - INFO - Included router: routers.health.router
2026-04-30 07:31:26,906 - main - INFO - Included router: routers.kb_articles.router
2026-04-30 07:31:26,964 - main - INFO - Included router: routers.notification_preferences.router
2026-04-30 07:31:27,013 - main - INFO - Included router: routers.notifications.router
2026-04-30 07:31:27,083 - main - INFO - Included router: routers.plans.router
2026-04-30 07:31:27,105 - main - INFO - Included router: routers.settings.router
2026-04-30 07:31:27,155 - main - INFO - Included router: routers.smtp_settings.router
2026-04-30 07:31:27,195 - main - INFO - Included router: routers.storage.router
2026-04-30 07:31:27,309 - main - INFO - Included router: routers.support_chat.router
2026-04-30 07:31:27,343 - main - INFO - Included router: routers.support_departments.router
2026-04-30 07:31:27,383 - main - INFO - Included router: routers.support_seats.router
2026-04-30 07:31:27,390 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-04-30 07:31:27,569 - main - INFO - Included router: routers.ticket_summaries.router
2026-04-30 07:31:27,623 - main - INFO - Included router: routers.ticket_sync_states.router
2026-04-30 07:31:27,631 - main - INFO - Included router: routers.user.router
2026-04-30 07:31:27,670 - main - INFO - Included router: routers.user_profiles.router
2026-04-30 07:31:27,758 - main - INFO - Included router: routers.whmcs.router
2026-04-30 07:31:27,834 - main - INFO - Included router: routers.whmcs_admin.router
2026-04-30 07:31:27,871 - main - INFO - Included router: routers.whmcs_extra.router
2026-04-30 07:31:27,872 - main - INFO - === Application startup initiated ===
2026-04-30 07:31:27,872 - services.database - INFO - Ignore creating tables
2026-04-30 07:31:27,872 - services.mock_data - INFO - Ignore initialize data
2026-04-30 07:31:27,873 - services.auth - INFO - Ignore initialize admin
2026-04-30 07:31:27,873 - main - INFO - === Application startup completed successfully ===
2026-04-30 07:31:31,036 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:31:31,036 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-30 07:31:31,036 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-30 07:31:31,037 - core.database - INFO - Starting database initialization...
2026-04-30 07:31:31,037 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-30 07:31:31,037 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-30 07:31:31,038 - core.database - INFO - Creating async database engine...
2026-04-30 07:31:31,038 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-30 07:31:31,083 - core.database - INFO - Database engine created successfully
2026-04-30 07:31:31,084 - core.database - INFO - Creating async session maker...
2026-04-30 07:31:31,084 - core.database - INFO - Async session maker created successfully
2026-04-30 07:31:31,084 - core.database - INFO - Database connection initialized successfully
2026-04-30 07:31:31,084 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-30 07:31:31,084 - core.database - INFO - 🔧 Starting table creation...
2026-04-30 07:31:33,603 - core.database - INFO - Tables initialized successfully
2026-04-30 07:31:33,603 - core.database - DEBUG - [DB_OP] Create tables completed in 2.5192s
2026-04-30 07:31:33,667 - core.database - INFO - Lazy database initialization completed successfully
2026-04-30 07:31:33,667 - core.database - DEBUG - [DB_OP] Database session created successfully in 2.6313s
2026-04-30 07:31:34,130 - core.database - DEBUG - [DB_OP] Database session cleanup after 3.0943s
2026-04-30 07:31:42,597 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-04-30 07:31:42,598 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-04-30 07:31:42,608 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 07:31:42,608 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:31:42,609 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-04-30 07:31:42,609 - routers.notifications - DEBUG - Querying notificationss: query=None, sort=None, skip=0, limit=30, fields=None
2026-04-30 07:31:43,121 - routers.notifications - DEBUG - Found 0 notificationss
2026-04-30 07:31:43,121 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5127s
2026-04-30 07:32:05,028 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-30 07:32:05,096 - core.database - INFO - Database connection closed and engine disposed
2026-04-30 07:32:05,096 - services.database - INFO - Database connections closed
2026-04-30 07:32:05,096 - services.database - DEBUG - [DB_OP] Database close completed in 0.0677s
