diff --git a/vnt-cli/src/command/mod.rs b/vnt-cli/src/command/mod.rs index ca45ad6..dbd1759 100644 --- a/vnt-cli/src/command/mod.rs +++ b/vnt-cli/src/command/mod.rs @@ -17,7 +17,7 @@ pub enum CommandEnum { pub fn command(cmd: CommandEnum) { if let Err(e) = command_(cmd) { - println!("cmd: {}", e); + println!("cmd: {:?}", e); } } diff --git a/vnt-cli/src/command/server.rs b/vnt-cli/src/command/server.rs index 2de1089..75b0a22 100644 --- a/vnt-cli/src/command/server.rs +++ b/vnt-cli/src/command/server.rs @@ -26,6 +26,7 @@ impl CommandServer { let (len, addr) = udp.recv_from(&mut buf).await?; match std::str::from_utf8(&buf[..len]) { Ok(cmd) => { + log::info!("收到cmd={:?}", cmd); if let Ok(out) = command(cmd, &vnt) { if let Err(e) = udp.send_to(out.as_bytes(), addr).await { log::warn!("cmd={},err={:?}", cmd, e);