Skip to content

Commit 5965b0d

Browse files
committed
debug log ctrl & command
1 parent b20beea commit 5965b0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

machine/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ where
229229

230230
let ctrl_task = async {
231231
while let Some(ctrl) = ctrl.next().await {
232+
log::debug!("{} CTRL {:?}", id, ctrl);
232233
match ctrl {
233234
IfaceCtrl::Up => iface.get_ref().put_up()?,
234235
IfaceCtrl::Down => iface.get_ref().put_down()?,
@@ -303,7 +304,7 @@ where
303304
let mut buf = Vec::with_capacity(4096);
304305
while let Some(cmd) = cmd.next().await {
305306
buf.clear();
306-
log::trace!("{}", cmd);
307+
log::debug!("{} {}", id, cmd);
307308
writeln!(buf, "{}", cmd)?;
308309
stdin.write_all(&buf).await?;
309310
}

0 commit comments

Comments
 (0)