forked from M-Labs/artiq
runtime: log moninj messages at TRACE level, like all others.
This commit is contained in:
parent
8cece4f260
commit
aaba36be7a
|
@ -170,6 +170,8 @@ fn connection_worker(io: &Io, mut stream: &mut TcpStream) -> io::Result<()> {
|
||||||
loop {
|
loop {
|
||||||
if stream.can_recv() {
|
if stream.can_recv() {
|
||||||
let request = HostMessage::read_from(stream)?;
|
let request = HostMessage::read_from(stream)?;
|
||||||
|
trace!("moninj<-host {:?}", request);
|
||||||
|
|
||||||
match request {
|
match request {
|
||||||
HostMessage::Monitor { enable, channel, probe } => {
|
HostMessage::Monitor { enable, channel, probe } => {
|
||||||
if enable {
|
if enable {
|
||||||
|
@ -186,6 +188,8 @@ fn connection_worker(io: &Io, mut stream: &mut TcpStream) -> io::Result<()> {
|
||||||
overrd: overrd,
|
overrd: overrd,
|
||||||
value: value
|
value: value
|
||||||
};
|
};
|
||||||
|
|
||||||
|
trace!("moninj->host {:?}", reply);
|
||||||
reply.write_to(stream)?;
|
reply.write_to(stream)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -202,7 +206,10 @@ fn connection_worker(io: &Io, mut stream: &mut TcpStream) -> io::Result<()> {
|
||||||
probe: probe,
|
probe: probe,
|
||||||
value: current
|
value: current
|
||||||
};
|
};
|
||||||
|
|
||||||
|
trace!("moninj->host {:?}", message);
|
||||||
message.write_to(stream)?;
|
message.write_to(stream)?;
|
||||||
|
|
||||||
*previous = Some(current);
|
*previous = Some(current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue