Log cleanup

This commit is contained in:
QuantumEntangledAndy committed 2023-08-16 18:54:00 +07:00
1 parent d64dbdb027
commit 13c06afc67
3 files changed
+9 -7

No files matched your search

@@ -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;
}
}
@@ -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
+4 -2
View File
@@ -81,8 +81,10 @@ impl Camera<Streaming> {
// 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),