2026-04-30 07:32:41,645 - main - INFO - === Logging system initialized ===
2026-04-30 07:32:41,646 - main - INFO - Log file: logs/app_20260430_073241.log
2026-04-30 07:32:41,646 - main - INFO - Log level: INFO
2026-04-30 07:32:41,646 - main - INFO - Timestamp: 20260430_073241
2026-04-30 07:32:41,725 - main - INFO - Included router: routers.agent_availability.router
2026-04-30 07:32:42,411 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-04-30 07:32:42,430 - main - INFO - Included router: routers.aihub.router
2026-04-30 07:32:42,442 - main - INFO - Included router: routers.auth.router
2026-04-30 07:32:42,486 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-04-30 07:32:42,529 - main - INFO - Included router: routers.chat_attachments.router
2026-04-30 07:32:42,595 - main - INFO - Included router: routers.chat_branding.router
2026-04-30 07:32:42,608 - main - INFO - Included router: routers.chat_branding_api.router
2026-04-30 07:32:42,660 - main - INFO - Included router: routers.chat_conversations.router
2026-04-30 07:32:42,705 - main - INFO - Included router: routers.chat_messages.router
2026-04-30 07:32:42,865 - main - INFO - Included router: routers.chat_routing_rules.router
2026-04-30 07:32:42,890 - main - INFO - Included router: routers.contact.router
2026-04-30 07:32:42,892 - main - INFO - Included router: routers.health.router
2026-04-30 07:32:42,938 - main - INFO - Included router: routers.kb_articles.router
2026-04-30 07:32:42,990 - main - INFO - Included router: routers.notification_preferences.router
2026-04-30 07:32:43,038 - main - INFO - Included router: routers.notifications.router
2026-04-30 07:32:43,108 - main - INFO - Included router: routers.plans.router
2026-04-30 07:32:43,130 - main - INFO - Included router: routers.settings.router
2026-04-30 07:32:43,166 - main - INFO - Included router: routers.smtp_settings.router
2026-04-30 07:32:43,208 - main - INFO - Included router: routers.storage.router
2026-04-30 07:32:43,328 - main - INFO - Included router: routers.support_chat.router
2026-04-30 07:32:43,363 - main - INFO - Included router: routers.support_departments.router
2026-04-30 07:32:43,407 - main - INFO - Included router: routers.support_seats.router
2026-04-30 07:32:43,415 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-04-30 07:32:43,558 - main - INFO - Included router: routers.ticket_summaries.router
2026-04-30 07:32:43,603 - main - INFO - Included router: routers.ticket_sync_states.router
2026-04-30 07:32:43,615 - main - INFO - Included router: routers.user.router
2026-04-30 07:32:43,655 - main - INFO - Included router: routers.user_profiles.router
2026-04-30 07:32:43,731 - main - INFO - Included router: routers.whmcs.router
2026-04-30 07:32:43,800 - main - INFO - Included router: routers.whmcs_admin.router
2026-04-30 07:32:43,839 - main - INFO - Included router: routers.whmcs_extra.router
2026-04-30 07:32:43,840 - main - INFO - === Application startup initiated ===
2026-04-30 07:32:43,840 - services.database - INFO - Ignore creating tables
2026-04-30 07:32:43,841 - services.mock_data - INFO - Ignore initialize data
2026-04-30 07:32:43,841 - services.auth - INFO - Ignore initialize admin
2026-04-30 07:32:43,841 - main - INFO - === Application startup completed successfully ===
2026-04-30 07:33:12,591 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-04-30 07:33:12,591 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-04-30 07:33:12,601 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 07:33:12,602 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:33:12,602 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-04-30 07:33:12,602 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-04-30 07:33:12,602 - core.database - INFO - Starting database initialization...
2026-04-30 07:33:12,602 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-04-30 07:33:12,602 - core.database - INFO - Normalizing database URL for async compatibility...
2026-04-30 07:33:12,603 - core.database - INFO - Creating async database engine...
2026-04-30 07:33:12,603 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-04-30 07:33:12,645 - core.database - INFO - Database engine created successfully
2026-04-30 07:33:12,645 - core.database - INFO - Creating async session maker...
2026-04-30 07:33:12,645 - core.database - INFO - Async session maker created successfully
2026-04-30 07:33:12,645 - core.database - INFO - Database connection initialized successfully
2026-04-30 07:33:12,645 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-04-30 07:33:12,645 - core.database - INFO - 🔧 Starting table creation...
2026-04-30 07:33:15,132 - core.database - INFO - Tables initialized successfully
2026-04-30 07:33:15,133 - core.database - DEBUG - [DB_OP] Create tables completed in 2.4874s
2026-04-30 07:33:15,196 - core.database - INFO - Lazy database initialization completed successfully
2026-04-30 07:33:15,197 - core.database - DEBUG - [DB_OP] Database session created successfully in 2.5949s
2026-04-30 07:33:15,197 - routers.notifications - DEBUG - Querying notificationss: query=None, sort=None, skip=0, limit=30, fields=None
2026-04-30 07:33:15,785 - routers.notifications - DEBUG - Found 0 notificationss
2026-04-30 07:33:15,786 - core.database - DEBUG - [DB_OP] Database session cleanup after 3.1841s
2026-04-30 07:33:31,594 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:33:31,594 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-04-30 07:33:31,978 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3840s
2026-04-30 07:33:58,573 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 07:33:58,573 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:33:58,574 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-04-30 07:33:58,574 - routers.notifications - DEBUG - Querying notificationss: query=None, sort=None, skip=0, limit=30, fields=None
2026-04-30 07:33:58,955 - routers.notifications - DEBUG - Found 0 notificationss
2026-04-30 07:33:58,955 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3818s
2026-04-30 07:34:53,083 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:34:53,083 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-04-30 07:34:53,121 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 07:34:53,122 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:34:53,122 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-04-30 07:34:53,122 - routers.notifications - DEBUG - Querying notificationss: query=None, sort=None, skip=0, limit=30, fields=None
2026-04-30 07:34:53,402 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3198s
2026-04-30 07:34:53,854 - routers.notifications - DEBUG - Found 0 notificationss
2026-04-30 07:34:53,854 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7327s
2026-04-30 07:35:30,377 - core.auth - DEBUG - Authentication token validated for user hash: 8c5e6440
2026-04-30 07:35:30,378 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:35:30,378 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-04-30 07:35:30,378 - routers.notifications - DEBUG - Querying notificationss: query=None, sort=None, skip=0, limit=30, fields=None
2026-04-30 07:35:30,759 - routers.notifications - DEBUG - Found 0 notificationss
2026-04-30 07:35:30,760 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3818s
2026-04-30 07:35:31,571 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:35:31,571 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 07:35:32,020 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4494s
2026-04-30 07:36:25,228 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-04-30 07:36:25,228 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-04-30 07:36:25,230 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-04-30 07:36:25,546 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3188s
2026-04-30 07:36:45,790 - services.database - DEBUG - [DB_OP] Starting database close
2026-04-30 07:36:45,924 - core.database - INFO - Database connection closed and engine disposed
2026-04-30 07:36:45,924 - services.database - INFO - Database connections closed
2026-04-30 07:36:45,925 - services.database - DEBUG - [DB_OP] Database close completed in 0.1346s
