Skip to content

Commit

Permalink
Log errors in more places in live_kit_client
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Nov 21, 2024
1 parent 22d10c2 commit 88d48f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/live_kit_client/src/live_kit_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pub fn capture_local_audio_track(
let source = source.clone();
async move {
while let Some(frame) = frame_rx.next().await {
source.capture_frame(&frame).await.ok();
source.capture_frame(&frame).await.log_err();
}
Ok(Some(()))
}
Expand Down Expand Up @@ -302,7 +302,7 @@ pub fn play_remote_audio_track(
if stream_config.as_ref().map_or(true, |c| *c != frame_config) {
buffer.resize(buffer_size as usize, 0);
stream_config = Some(frame_config.clone());
stream_config_tx.send(frame_config).ok();
stream_config_tx.send(frame_config).log_err();
}

if frame.data.len() == buffer.len() {
Expand All @@ -327,7 +327,7 @@ pub fn play_remote_audio_track(
.context("no audio output device available")?;

let mut _output_stream = None;
while let Some(config) = stream_config_rx.recv().ok() {
while let Some(config) = stream_config_rx.recv().log_err() {
_output_stream = Some(device.build_output_stream(
&config,
{
Expand Down

0 comments on commit 88d48f4

Please sign in to comment.