Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
call: Log LiveKit connection info refresh outcomes in retry loop (#59205)
Piotr Osiewiczabbe85a3321b
diff --git a/crates/call/src/call_impl/room.rs b/crates/call/src/call_impl/room.rsindex fd5c7ac78a7..9a5ee0d76c0 100644--- a/crates/call/src/call_impl/room.rs+++ b/crates/call/src/call_impl/room.rs@@ -1855,8 +1855,19 @@ fn spawn_room_connection(return;};match rejoin.await {- Ok(Some(new_connection_info)) => connection_info = new_connection_info,- Ok(None) => {}+ Ok(Some(new_connection_info)) => {+ log::info!(+ "refreshed LiveKit connection info (token changed: {})",+ new_connection_info.token != connection_info.token+ );+ connection_info = new_connection_info;+ }+ Ok(None) => {+ log::warn!(+ "server returned no fresh LiveKit connection info; \+ retrying with the existing token"+ );+ }Err(error) => {log::error!("failed to refresh LiveKit connection info: {error:#}");}