Skip to content

Commit

Permalink
fix(logs): dont log expected messages at error level
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-faber committed Feb 18, 2021
1 parent 353ccfc commit 12b2c5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use super::{
};
use bytes::Bytes;
use futures::stream::StreamExt;
use log::{error, trace};
use log::{error, trace, warn};
use std::net::SocketAddr;
use tokio::sync::mpsc::UnboundedSender;
use tokio::{
Expand Down Expand Up @@ -223,7 +223,7 @@ async fn next_on_uni_streams(uni_streams: &mut quinn::IncomingUniStreams) -> Opt
None
}
Some(Err(err)) => {
error!("Failed to read incoming message on uni-stream: {}", err);
warn!("Failed to read incoming message on uni-stream: {}", err);
None
}
Some(Ok(mut recv)) => match read_bytes(&mut recv).await {
Expand Down Expand Up @@ -252,7 +252,7 @@ async fn next_on_bi_streams(
None
}
Some(Err(err)) => {
error!("Failed to read incoming message on bi-stream: {}", err);
warn!("Failed to read incoming message on bi-stream: {}", err);
None
}
Some(Ok((mut send, mut recv))) => match read_bytes(&mut recv).await {
Expand Down

0 comments on commit 12b2c5a

Please sign in to comment.