commit d46c1425e1623156954a13089067142db16a8ac9
parent 3f1313e801ffd4db18e7fec5c3dbbf0984ec16b3
Author: Daniel Barlow <dan@telent.net>
Date: Thu, 25 Dec 2025 15:16:24 +0000
reduce log noise
Diffstat:
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/ecu-esp32/src/wifi.rs b/ecu-esp32/src/wifi.rs
@@ -206,11 +206,13 @@ async fn send_response(sock: &UdpSocket<'_>,
// Serialize the message into the buffer
assert!(advert_message.space_needed() <= data_buf.len());
- info!("ready to send to {:?}", endpoint);
+ // info!("ready to send to {:?}", endpoint);
match advert_message.write(&mut data_buf) {
Result::Ok(len) => {
- info!("sock.send: {:?}", sock.send_to(&data_buf[..len], endpoint).await);
+ if let Result::Err(x) = sock.send_to(&data_buf[..len], endpoint).await {
+ info!("sock.send failed: {:?}", x);
+ }
},
Result::Err(err) => {
error!("message.write {:?}", err);
@@ -230,13 +232,13 @@ async fn send_responses(sock: &UdpSocket<'_>,
// it's ok to do this for legacy queries but they probably
// don't have multiple questions anyway
for q in message.questions() {
- log::info!("question {:?} {:?} {:?} flags {:?} from {:?}",
- q.name(), q.ty(), q.class(),
- message.flags().raw(),
- meta.endpoint);
-
let relevant = DnsResource::find(q.name(), q.ty(), resources);
for r in relevant {
+ log::info!("question {:?} {:?} {:?} flags {:?} from {:?}",
+ q.name(), q.ty(), q.class(),
+ message.flags().raw(),
+ meta.endpoint);
+
log::info!("can send {:?} {:?}",
r.name, r.ty);
send_response(&sock, q_id, MDNS_ENDPOINT, None,
@@ -340,7 +342,7 @@ pub async fn start_wifi(spawner: &Spawner,
let res = sock.recv_from(&mut data_buf).await;
if let Ok((n, meta)) = res {
- log::info!("received packet len {n}");
+ // log::info!("received packet len {n}");
let message = Message::read(
&data_buf[..n],
&mut questions,