mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Phase 1 — Server-side logging: - Enhance HTTP request logging with client_ip, bytes, req_id - Enrich WS disconnect logs with duration, msgs received/sent/dropped, voice channel, and last error - Add structured logging to LiveKit webhook events - Enrich voice join/leave logs with username, remote addr, quality, channel occupancy - Add channel_id to voice control debug logs Phase 1 — Client log persistence: - New logPersistence.ts: rotating JSONL files in appLogDir with 5-day retention, 2s debounced flush, append mode - Wire into app startup with flush on beforeunload - Scope all new FS capabilities to $APPLOG/** Phase 1 — Rust proxy logging: - Replace eprintln! with structured log crate (info/warn/error/debug) in livekit_proxy.rs and ws_proxy.rs - Add env_logger with try_init for safe initialization - Log TLS handshakes, TOFU checks, connection lifecycle, byte counts Phase 1 — Cache management UI: - Add Clear Image Cache, Clear Log Files, and Clear All Cache & Restart buttons to Settings > Advanced with confirmation dialog Phase 2 — LiveKit ICE and lifecycle logging: - Log ICE candidate types (host/srflx/relay) and selected candidate pair on every voice connect and auto-reconnect - Add room lifecycle event handlers: Reconnecting, Reconnected, SignalReconnecting, MediaDevicesError, ConnectionQualityChanged - Expose ICE connection state in getSessionDebugInfo() Phase 2 — WebSocket reconnection logging: - Structured reconnection logs with host, attempt, lastSeq - Log reconnect success with attempt count - Detailed connection state transitions (open/close with context) Phase 2 — Server diagnostics endpoint: - GET /api/v1/diagnostics/connectivity (auth required) - Returns server info, LiveKit health/URL/node_ip, client remote_addr, and private network detection