eculocate

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 104912e8a633bba00405f5d00e135923e73c4f77
parent ae0393cd4883468187b2715645c03f080eb9f049
Author: Daniel Barlow <dan@telent.net>
Date:   Wed, 24 Dec 2025 23:58:38 +0000

use log::{info,error}

Diffstat:
Mecu-esp32/src/wifi.rs | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ecu-esp32/src/wifi.rs b/ecu-esp32/src/wifi.rs @@ -32,7 +32,7 @@ use esp_radio::{ }, }; -use log::info; +use log::{info,error}; use dns_protocol::{Message, Question, @@ -111,14 +111,14 @@ async fn send_advert(sock: &UdpSocket<'_>, // Serialize the message into the buffer assert!(advert_message.space_needed() <= data_buf.len()); - log::info!("ready to send to {:?}", endpoint); + info!("ready to send to {:?}", endpoint); match advert_message.write(&mut data_buf) { Result::Ok(len) => { - log::info!("sock.send: {:?}", sock.send_to(&data_buf[..len], endpoint).await); + info!("sock.send: {:?}", sock.send_to(&data_buf[..len], endpoint).await); }, Result::Err(err) => { - log::error!("message.write {:?}", err); + error!("message.write {:?}", err); } } }