From 52705a80a5012aa48cec9ddf61898596e96c9dfd Mon Sep 17 00:00:00 2001 From: diogo464 Date: Fri, 5 Dec 2025 18:47:41 +0000 Subject: changed verbosity of some log messages --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b16169a..4fae2ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -487,7 +487,7 @@ impl<'a> Device<'a> { return Err(Error::new("mqtt connection failed")); } - defmt::info!("sending discover messages"); + defmt::debug!("sending discover messages"); let device_discovery = DeviceDiscovery { identifiers: &[self.config.device_id], name: self.config.device_name, @@ -554,7 +554,7 @@ impl<'a> Device<'a> { mode: entity_config.mode, device: &device_discovery, }; - defmt::info!("discovery for entity '{}': {}", entity_config.id, discovery); + defmt::debug!("discovery for entity '{}': {}", entity_config.id, discovery); self.discovery_buffer .resize(self.discovery_buffer.capacity(), 0) @@ -565,7 +565,7 @@ impl<'a> Device<'a> { } let discovery_topic = self.discovery_topic_buffer.as_str(); - defmt::info!("sending discovery to topic '{}'", discovery_topic); + defmt::debug!("sending discovery to topic '{}'", discovery_topic); if let Err(err) = client .publish(discovery_topic, &self.discovery_buffer) .await @@ -578,7 +578,7 @@ impl<'a> Device<'a> { } let command_topic = self.command_topic_buffer.as_str(); - defmt::info!("subscribing to command topic '{}'", command_topic); + defmt::debug!("subscribing to command topic '{}'", command_topic); if let Err(err) = client.subscribe(command_topic).await { defmt::error!( "mqtt subscribe to '{}' failed with: {:?}", @@ -709,7 +709,7 @@ impl<'a> Device<'a> { continue; } - defmt::info!( + defmt::debug!( "mqtt receiving {} bytes of data on topic {}", publish.data_len, publish.topic -- cgit