INFO:     Started server process [243014]
INFO:     Waiting for application startup.
{"app_name": "Telegram SaaS Platform", "env": "production", "event": "application_starting", "logger": "apps.api.lifespan", "level": "info", "timestamp": "2026-11-18T17:24:11.523218Z"}
{"pool_size": 10, "max_overflow": 5, "event": "initializing_db_engine", "logger": "infrastructure.database.engine", "level": "info", "timestamp": "2026-11-18T17:24:11.523503Z"}
{"event": "database_connected_successfully", "logger": "apps.api.lifespan", "level": "info", "timestamp": "2026-11-18T17:24:11.592179Z"}
{"url": "redis://127.0.0.1:6379/0", "event": "initializing_redis_pool", "logger": "infrastructure.redis.client", "level": "info", "timestamp": "2026-11-18T17:24:11.592416Z"}
{"ping": true, "event": "redis_connected_successfully", "logger": "apps.api.lifespan", "level": "info", "timestamp": "2026-11-18T17:24:11.600007Z"}
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
{"event": "HTTP Request: GET https://api.telegram.org/bot1234567890:ABCdefGhIJKlmNoPQRsTUVwxyZ12345/getMe \"HTTP/1.1 401 Unauthorized\"", "tenant_id": "4b48bf9c-3588-4772-9d81-ddba29998830", "user_id": "e57f25b5-fb05-46ac-ac3f-e2c8788e9d9b", "request_id": "9a729ec2-56d7-4a7d-a6c9-9d62314050a1", "logger": "httpx", "level": "info", "timestamp": "2026-11-18T17:24:21.008183Z"}
{"path": "/api/v1/bots", "method": "POST", "error_code": "VALIDATION_ERROR", "message": "Unauthorized: Invalid Telegram Bot token provided", "event": "app_exception_handled", "tenant_id": "4b48bf9c-3588-4772-9d81-ddba29998830", "user_id": "e57f25b5-fb05-46ac-ac3f-e2c8788e9d9b", "request_id": "9a729ec2-56d7-4a7d-a6c9-9d62314050a1", "logger": "apps.api.exception_handlers", "level": "warning", "timestamp": "2026-11-18T17:24:21.010262Z"}
{"event": "HTTP Request: GET https://api.telegram.org/bot1234567890:ABCdefFakeTokenForTesting12345/getMe \"HTTP/1.1 401 Unauthorized\"", "tenant_id": "4b48bf9c-3588-4772-9d81-ddba29998830", "user_id": "e57f25b5-fb05-46ac-ac3f-e2c8788e9d9b", "request_id": "4bae9de9-f964-41d0-9db9-184096ca7548", "logger": "httpx", "level": "info", "timestamp": "2026-11-18T17:32:20.117599Z"}
{"path": "/api/v1/bots", "method": "POST", "error_code": "VALIDATION_ERROR", "message": "Unauthorized: Invalid Telegram Bot token provided", "event": "app_exception_handled", "tenant_id": "4b48bf9c-3588-4772-9d81-ddba29998830", "user_id": "e57f25b5-fb05-46ac-ac3f-e2c8788e9d9b", "request_id": "4bae9de9-f964-41d0-9db9-184096ca7548", "logger": "apps.api.exception_handlers", "level": "warning", "timestamp": "2026-11-18T17:32:20.124493Z"}
{"event": "HTTP Request: GET https://api.telegram.org/bot1234567890:ABCdefFakeTokenForTesting12345/getMe \"HTTP/1.1 401 Unauthorized\"", "tenant_id": "4b48bf9c-3588-4772-9d81-ddba29998830", "user_id": "e57f25b5-fb05-46ac-ac3f-e2c8788e9d9b", "request_id": "f13c7338-b9fa-44f2-aa11-45c4b3527172", "logger": "httpx", "level": "info", "timestamp": "2026-11-18T17:34:28.491109Z"}
{"path": "/api/v1/bots", "method": "POST", "error_code": "VALIDATION_ERROR", "message": "Unauthorized: Invalid Telegram Bot token provided", "event": "app_exception_handled", "tenant_id": "4b48bf9c-3588-4772-9d81-ddba29998830", "user_id": "e57f25b5-fb05-46ac-ac3f-e2c8788e9d9b", "request_id": "f13c7338-b9fa-44f2-aa11-45c4b3527172", "logger": "apps.api.exception_handlers", "level": "warning", "timestamp": "2026-11-18T17:34:28.494158Z"}
