From 12c13b4d70492e4355edcb1ad18ac5f53b174fb5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 15 Oct 2022 12:57:48 +0200 Subject: improve logging, remove unused --- client-native-lib/src/peer.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'client-native-lib/src') 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 -- cgit v1.2.3-70-g09d2