From 4f457d9c24b65f96f7d7137222fa27be97361f25 Mon Sep 17 00:00:00 2001 From: mwojcik Date: Fri, 20 May 2022 17:32:43 +0800 Subject: [PATCH] moninj: log link down at debug level --- src/runtime/src/moninj.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/runtime/src/moninj.rs b/src/runtime/src/moninj.rs index 0a92b4bf..5b136066 100644 --- a/src/runtime/src/moninj.rs +++ b/src/runtime/src/moninj.rs @@ -20,8 +20,7 @@ use crate::proto_async::*; pub enum Error { NetworkError(smoltcp::Error), UnexpectedPattern, - UnrecognizedPacket, - + UnrecognizedPacket } pub type Result = core::result::Result; @@ -72,7 +71,7 @@ mod remote_moninj { match reply { Ok(drtioaux_async::Packet::MonitorReply { value }) => return value as i64, Ok(packet) => error!("received unexpected aux packet: {:?}", packet), - Err("link went down") => {}, + Err("link went down") => { debug!("link is down"); }, Err(e) => error!("aux packet error ({})", e) } 0 @@ -99,7 +98,7 @@ mod remote_moninj { match reply { Ok(drtioaux_async::Packet::InjectionStatusReply { value }) => return value as i8, Ok(packet) => error!("received unexpected aux packet: {:?}", packet), - Err("link went down") => {}, + Err("link went down") => { debug!("link is down"); }, Err(e) => error!("aux packet error ({})", e) } 0