From b3b092838c338f48bed2d7b396745a8c262b3cb9 Mon Sep 17 00:00:00 2001 From: occheung Date: Fri, 23 Aug 2024 13:10:59 +0800 Subject: [PATCH] mgmt: update debug prints --- src/satman/src/main.rs | 4 ++-- src/satman/src/mgmt.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/satman/src/main.rs b/src/satman/src/main.rs index 984a085..fb93308 100644 --- a/src/satman/src/main.rs +++ b/src/satman/src/main.rs @@ -1076,7 +1076,7 @@ fn process_aux_packet( ); if let Ok(level_filter) = mgmt::byte_to_level_filter(log_level) { - info!("Changing log level to {}", log_level); + info!("Changing log level to {}", level_filter); log::set_max_level(level_filter); drtioaux::send(0, &drtioaux::Packet::CoreMgmtAck) } else { @@ -1099,7 +1099,7 @@ fn process_aux_packet( ); if let Ok(level_filter) = mgmt::byte_to_level_filter(log_level) { - info!("Changing log level to {}", log_level); + info!("Changing log level to {}", level_filter); unsafe { logger::BufferLogger::get_logger() .as_ref() diff --git a/src/satman/src/mgmt.rs b/src/satman/src/mgmt.rs index 0aa22ae..169037e 100644 --- a/src/satman/src/mgmt.rs +++ b/src/satman/src/mgmt.rs @@ -97,6 +97,7 @@ impl<'a> Manager<'_> { .current_payload .read_string() .map_err(|_err| error!("error on reading key"))?; + debug!("write key: {}", key); let value = self.current_payload.read_bytes().unwrap(); self.cfg