From aaba36be7a55cf9a292ea429abe112e8c040d257 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 16 Dec 2017 22:35:12 +0000 Subject: [PATCH] runtime: log moninj messages at TRACE level, like all others. --- artiq/firmware/runtime/moninj.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/artiq/firmware/runtime/moninj.rs b/artiq/firmware/runtime/moninj.rs index 084df6bb4..76de9cfbb 100644 --- a/artiq/firmware/runtime/moninj.rs +++ b/artiq/firmware/runtime/moninj.rs @@ -170,6 +170,8 @@ fn connection_worker(io: &Io, mut stream: &mut TcpStream) -> io::Result<()> { loop { if stream.can_recv() { let request = HostMessage::read_from(stream)?; + trace!("moninj<-host {:?}", request); + match request { HostMessage::Monitor { enable, channel, probe } => { if enable { @@ -186,6 +188,8 @@ fn connection_worker(io: &Io, mut stream: &mut TcpStream) -> io::Result<()> { overrd: overrd, value: value }; + + trace!("moninj->host {:?}", reply); reply.write_to(stream)?; } } @@ -202,7 +206,10 @@ fn connection_worker(io: &Io, mut stream: &mut TcpStream) -> io::Result<()> { probe: probe, value: current }; + + trace!("moninj->host {:?}", message); message.write_to(stream)?; + *previous = Some(current); } }