mgmt: update debug prints

This commit is contained in:
occheung 2024-08-23 13:10:59 +08:00
parent 538b50c412
commit b3b092838c
2 changed files with 3 additions and 2 deletions

View File

@ -1076,7 +1076,7 @@ fn process_aux_packet(
); );
if let Ok(level_filter) = mgmt::byte_to_level_filter(log_level) { 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); log::set_max_level(level_filter);
drtioaux::send(0, &drtioaux::Packet::CoreMgmtAck) drtioaux::send(0, &drtioaux::Packet::CoreMgmtAck)
} else { } else {
@ -1099,7 +1099,7 @@ fn process_aux_packet(
); );
if let Ok(level_filter) = mgmt::byte_to_level_filter(log_level) { 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 { unsafe {
logger::BufferLogger::get_logger() logger::BufferLogger::get_logger()
.as_ref() .as_ref()

View File

@ -97,6 +97,7 @@ impl<'a> Manager<'_> {
.current_payload .current_payload
.read_string() .read_string()
.map_err(|_err| error!("error on reading key"))?; .map_err(|_err| error!("error on reading key"))?;
debug!("write key: {}", key);
let value = self.current_payload.read_bytes().unwrap(); let value = self.current_payload.read_bytes().unwrap();
self.cfg self.cfg