fix(machines): Don't warn on expected end-of-input errors (#15)

This commit is contained in:
Santiago Carmuega 2022-01-02 10:29:46 -03:00 committed by GitHub
parent f457c44d24
commit a5a027690a
2 changed files with 5 additions and 6 deletions

View file

@ -8,7 +8,7 @@ use std::{
time::{Duration, Instant},
};
use log::{debug, error, trace, warn};
use log::{debug, error, warn};
pub trait Bearer: Read + Write + Send + Sync + Sized {
fn read_segment(&mut self) -> Result<(u16, u32, Payload), std::io::Error>;
@ -49,7 +49,7 @@ where
}
Err(TryRecvError::Disconnected) => {
//TODO: remove handle from list
trace!("protocol handle {} disconnected", id);
warn!("protocol handle {} disconnected", id);
}
Err(TryRecvError::Empty) => (),
};