diff options
author | metamuffin <metamuffin@disroot.org> | 2022-10-15 12:57:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-10-15 12:57:48 +0200 |
commit | 12c13b4d70492e4355edcb1ad18ac5f53b174fb5 (patch) | |
tree | 29b8334bac1c0448010a001034eba11e17e9fede /client-native-lib/src | |
parent | c933b484e2b2966e97ab741f1c05d0ff28e43000 (diff) | |
download | keks-meet-12c13b4d70492e4355edcb1ad18ac5f53b174fb5.tar keks-meet-12c13b4d70492e4355edcb1ad18ac5f53b174fb5.tar.bz2 keks-meet-12c13b4d70492e4355edcb1ad18ac5f53b174fb5.tar.zst |
improve logging, remove unused
Diffstat (limited to 'client-native-lib/src')
-rw-r--r-- | client-native-lib/src/peer.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client-native-lib/src/peer.rs b/client-native-lib/src/peer.rs index 8e89f48..82c7c94 100644 --- a/client-native-lib/src/peer.rs +++ b/client-native-lib/src/peer.rs @@ -6,9 +6,8 @@ use crate::{ instance::Instance, protocol::{self, ProvideInfo, RelayMessage, Sdp}, - LocalResource, }; -use log::{info, warn}; +use log::{debug, info, warn}; use std::{collections::HashMap, sync::Arc}; use tokio::sync::RwLock; use webrtc::{ @@ -191,7 +190,7 @@ impl Peer { warn!("({}) requested unknown local resource", self.id) } } - RelayMessage::RequestStop { id } => {} + RelayMessage::RequestStop { id: _ } => {} // TODO } } @@ -200,14 +199,14 @@ impl Peer { } pub async fn on_ice_candidate(&self, candidate: RTCIceCandidate) { - info!("publishing local ICE candidate"); + debug!("publishing local ICE candidate"); self.send_relay(RelayMessage::IceCandidate( candidate.to_json().await.unwrap(), )) .await; } pub async fn on_remote_ice_candidate(&self, candidate: RTCIceCandidateInit) { - info!("adding remote ICE candidate"); + debug!("adding remote ICE candidate"); self.peer_connection .add_ice_candidate(candidate) .await |