2026-05-01 06:08:36,922 - main - INFO - === Logging system initialized ===
2026-05-01 06:08:36,922 - main - INFO - Log file: logs/app_20260501_060836.log
2026-05-01 06:08:36,922 - main - INFO - Log level: INFO
2026-05-01 06:08:36,922 - main - INFO - Timestamp: 20260501_060836
2026-05-01 06:08:37,705 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-01 06:08:37,788 - main - INFO - Included router: routers.agent_availability.router
2026-05-01 06:08:50,687 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-01 06:08:50,820 - main - INFO - Included router: routers.aihub.router
2026-05-01 06:08:50,858 - main - INFO - Included router: routers.auth.router
2026-05-01 06:08:50,956 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-01 06:08:51,106 - main - INFO - Included router: routers.chat_attachments.router
2026-05-01 06:08:51,240 - main - INFO - Included router: routers.chat_branding.router
2026-05-01 06:08:51,288 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-01 06:08:51,389 - main - INFO - Included router: routers.chat_conversations.router
2026-05-01 06:08:51,674 - main - INFO - Included router: routers.chat_messages.router
2026-05-01 06:08:51,829 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-01 06:08:51,972 - main - INFO - Included router: routers.contact.router
2026-05-01 06:08:52,115 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-01 06:08:52,122 - main - INFO - Included router: routers.health.router
2026-05-01 06:08:52,215 - main - INFO - Included router: routers.kb_articles.router
2026-05-01 06:08:52,472 - main - INFO - Included router: routers.notification_preferences.router
2026-05-01 06:08:52,629 - main - INFO - Included router: routers.notifications.router
2026-05-01 06:08:52,709 - main - INFO - Included router: routers.plans.router
2026-05-01 06:08:52,745 - main - INFO - Included router: routers.settings.router
2026-05-01 06:08:52,820 - main - INFO - Included router: routers.site_settings.router
2026-05-01 06:08:53,013 - main - INFO - Included router: routers.smtp_settings.router
2026-05-01 06:08:53,207 - main - INFO - Included router: routers.storage.router
2026-05-01 06:08:53,360 - main - INFO - Included router: routers.support_chat.router
2026-05-01 06:08:53,582 - main - INFO - Included router: routers.support_departments.router
2026-05-01 06:08:53,662 - main - INFO - Included router: routers.support_seats.router
2026-05-01 06:08:53,692 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-01 06:08:53,749 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-01 06:08:53,829 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-01 06:08:53,904 - main - INFO - Included router: routers.user.router
2026-05-01 06:08:54,077 - main - INFO - Included router: routers.user_profiles.router
2026-05-01 06:08:54,254 - main - INFO - Included router: routers.user_roles.router
2026-05-01 06:08:54,530 - main - INFO - Included router: routers.whmcs.router
2026-05-01 06:08:54,613 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-01 06:08:54,723 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-01 06:08:54,725 - main - INFO - === Application startup initiated ===
2026-05-01 06:08:54,725 - services.database - INFO - Ignore creating tables
2026-05-01 06:08:54,725 - services.mock_data - INFO - Ignore initialize data
2026-05-01 06:08:54,725 - services.auth - INFO - Ignore initialize admin
2026-05-01 06:08:54,725 - main - INFO - === Application startup completed successfully ===
2026-05-01 06:09:02,319 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:09:02,320 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-01 06:09:02,320 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-01 06:09:02,320 - core.database - INFO - Starting database initialization...
2026-05-01 06:09:02,320 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-01 06:09:02,321 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-01 06:09:02,323 - core.database - INFO - Creating async database engine...
2026-05-01 06:09:02,323 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-01 06:09:02,377 - core.database - INFO - Database engine created successfully
2026-05-01 06:09:02,377 - core.database - INFO - Creating async session maker...
2026-05-01 06:09:02,378 - core.database - INFO - Async session maker created successfully
2026-05-01 06:09:02,378 - core.database - INFO - Database connection initialized successfully
2026-05-01 06:09:02,379 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-01 06:09:02,379 - core.database - INFO - 🔧 Starting table creation...
2026-05-01 06:09:02,430 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:09:02,430 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-01 06:09:02,430 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-01 06:09:02,436 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-05-01 06:09:02,438 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:09:02,438 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-01 06:09:02,438 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-01 06:09:03,888 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-01 06:09:03,889 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.4596s
2026-05-01 06:09:03,890 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-01 06:09:03,890 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.4527s
2026-05-01 06:09:05,106 - core.database - INFO - Tables initialized successfully
2026-05-01 06:09:05,106 - core.database - DEBUG - [DB_OP] Create tables completed in 2.7277s
2026-05-01 06:09:05,170 - core.database - INFO - Lazy database initialization completed successfully
2026-05-01 06:09:05,170 - core.database - DEBUG - [DB_OP] Database session created successfully in 2.8512s
2026-05-01 06:09:05,619 - core.database - DEBUG - [DB_OP] Database session cleanup after 3.3001s
2026-05-01 06:10:03,253 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:10:03,254 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:10:03,709 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4560s
2026-05-01 06:11:02,321 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:11:02,321 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:11:02,767 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4464s
2026-05-01 06:14:07,378 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-05-01 06:14:07,379 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:14:07,379 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-01 06:14:07,380 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-01 06:14:07,383 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:14:07,383 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-01 06:14:07,385 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:14:07,385 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-01 06:14:07,385 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-01 06:14:07,700 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3168s
2026-05-01 06:14:07,887 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-01 06:14:07,887 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5081s
2026-05-01 06:14:07,889 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-01 06:14:07,889 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5045s
2026-05-01 06:15:08,252 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:15:08,253 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-01 06:15:08,699 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4467s
2026-05-01 06:16:08,266 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:16:08,267 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:16:08,594 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3276s
2026-05-01 06:17:08,279 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:17:08,280 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:17:08,722 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4429s
2026-05-01 06:18:08,492 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:18:08,492 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-01 06:18:08,818 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3263s
2026-05-01 06:19:08,278 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:19:08,279 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-01 06:19:08,722 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4440s
2026-05-01 06:20:08,268 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:20:08,269 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0009s
2026-05-01 06:20:08,586 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3184s
2026-05-01 06:21:15,368 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:21:15,368 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:21:15,813 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4456s
2026-05-01 06:22:15,267 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:22:15,268 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:22:15,587 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3198s
2026-05-01 06:23:15,268 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:23:15,269 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:23:15,711 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4427s
2026-05-01 06:24:15,275 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:24:15,276 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-01 06:24:15,595 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3198s
2026-05-01 06:25:15,269 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:25:15,270 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0009s
2026-05-01 06:25:15,715 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4453s
2026-05-01 06:26:15,267 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:26:15,267 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:26:15,584 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3173s
2026-05-01 06:27:15,281 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:27:15,282 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:27:15,726 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4451s
2026-05-01 06:28:15,262 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:28:15,263 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-01 06:28:15,581 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3190s
2026-05-01 06:29:15,290 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-01 06:29:15,291 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-01 06:29:15,734 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4440s
2026-05-01 06:30:09,427 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-01 06:30:09,629 - core.database - INFO - Database connection closed and engine disposed
2026-05-01 06:30:09,629 - services.database - INFO - Database connections closed
2026-05-01 06:30:09,630 - services.database - DEBUG - [DB_OP] Database close completed in 0.2025s
