diff --git a/crates/core/src/bc_protocol/connection/bcconn.rs b/crates/core/src/bc_protocol/connection/bcconn.rs index 150dd08..ef5871c 100644 --- a/crates/core/src/bc_protocol/connection/bcconn.rs +++ b/crates/core/src/bc_protocol/connection/bcconn.rs @@ -62,7 +62,7 @@ impl BcConnection { PollSender::new(thread_poll_commander) .send_all(&mut source.map(|bc| Ok(PollCommand::Bc(Box::new(bc))))), ); - log::info!("PollSender Bc {:?}", result); + log::trace!("PollSender Bc {:?}", result); result }); rx_thread.spawn(async move { @@ -75,7 +75,7 @@ impl BcConnection { rx_thread.spawn(async move { loop { if let n @ Err(_) = poller.run().await { - error!("Polling has ended"); + trace!("Polling has ended"); return n; } } diff --git a/crates/core/src/bc_protocol/connection/udpsource.rs b/crates/core/src/bc_protocol/connection/udpsource.rs index 17f8b9e..0155e55 100644 --- a/crates/core/src/bc_protocol/connection/udpsource.rs +++ b/crates/core/src/bc_protocol/connection/udpsource.rs @@ -479,13 +479,13 @@ impl UdpPayloadSource { payload_inner.thread_sink.close(); return Err(Error::DroppedConnection); } - log::info!("Calling inner"); + log::trace!("Calling inner"); let res = payload_inner.run().await; - log::info!("Called inner: {:?}", res); + log::trace!("Called inner: {:?}", res); match res { Ok(()) => {} Err(e) => { - log::error!("UDP Error. Connection will Drop: {:?}", e); + log::trace!("UDP Error. Connection will Drop: {:?}", e); // Pass error up let _ = payload_inner .thread_stream diff --git a/src/rtsp/states/streaming.rs b/src/rtsp/states/streaming.rs index 01dbf11..3308d5b 100644 --- a/src/rtsp/states/streaming.rs +++ b/src/rtsp/states/streaming.rs @@ -81,8 +81,10 @@ impl Camera { // debug!("Straming: Get"); let data = timeout(Duration::from_secs(15), stream_data.get_data()) .await - .with_context(|| "Timed out waiting for new Media Frame")??; - // debug!("Straming: Got"); + .with_context(|| "Timed out waiting for new Media Frame") + .unwrap() + .unwrap(); //??; + // debug!("Straming: Got"); match &data { Ok(BcMedia::InfoV1(_)) => trace!("{}: - InfoV1", &tag_thread), Ok(BcMedia::InfoV2(_)) => trace!("{}: - InfoV2", &tag_thread),