Skip to content

Commit

Permalink
change logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwoodbury committed Nov 8, 2023
1 parent 9fafe0e commit 8ae71da
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,6 @@ async fn run(
continue;
}
};
log::debug!("webrtc event: {:?}", &event);
match event {
simple_webrtc::events::EmittedEvents::Ice { dest, candidate } => {
let topic = ipfs_routes::peer_signal_route(&dest, &active_call.unwrap_or_default());
Expand All @@ -756,6 +755,7 @@ async fn run(
},
simple_webrtc::events::EmittedEvents::Disconnected { peer }
| simple_webrtc::events::EmittedEvents::ConnectionFailed { peer } => {
log::debug!("webrtc: disconnected or connection failed");
// todo: dont' call this multiple times per peer
let ac = active_call.unwrap_or_default();
call_data_map.remove_participant(ac, &peer);
Expand All @@ -781,6 +781,7 @@ async fn run(
}
},
simple_webrtc::events::EmittedEvents::ConnectionClosed { peer } => {
log::debug!("webrtc: connection closed");
// hoping this will trigger the Disconnected event.
webrtc_controller.hang_up(&peer).await;
}
Expand Down

0 comments on commit 8ae71da

Please sign in to comment.