mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-25 11:02:12 +00:00
Turn yamux's error! into debug! (#995)
This commit is contained in:
parent
2c66f82b11
commit
cb93c822f1
@ -23,7 +23,7 @@
|
||||
|
||||
use futures::{future::{self, FutureResult}, prelude::*};
|
||||
use libp2p_core::{muxing::Shutdown, upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeInfo}};
|
||||
use log::error;
|
||||
use log::debug;
|
||||
use std::{io, iter, sync::atomic};
|
||||
use std::io::{Error as IoError};
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
@ -51,7 +51,7 @@ where
|
||||
fn poll_inbound(&self) -> Poll<Option<Self::Substream>, IoError> {
|
||||
match self.0.poll() {
|
||||
Err(e) => {
|
||||
error!("connection error: {}", e);
|
||||
debug!("connection error: {}", e);
|
||||
Err(io::Error::new(io::ErrorKind::Other, e))
|
||||
}
|
||||
Ok(Async::NotReady) => Ok(Async::NotReady),
|
||||
|
Loading…
x
Reference in New Issue
Block a user