mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +00:00
downgrade logging of malformed packets to debug (#3367)
This commit is contained in:
committed by
Gavin Wood
parent
db5e6712d7
commit
bf32626373
@@ -19,7 +19,7 @@ use crate::protocol::message::Message;
|
||||
use bytes::Bytes;
|
||||
use libp2p::core::{Negotiated, Endpoint, UpgradeInfo, InboundUpgrade, OutboundUpgrade, upgrade::ProtocolName};
|
||||
use libp2p::tokio_codec::Framed;
|
||||
use log::warn;
|
||||
use log::debug;
|
||||
use std::{collections::VecDeque, io, marker::PhantomData, vec::IntoIter as VecIntoIter};
|
||||
use futures::{prelude::*, future, stream};
|
||||
use codec::{Decode, Encode};
|
||||
@@ -201,7 +201,7 @@ where TSubstream: AsyncRead + AsyncWrite, B: BlockT {
|
||||
Async::Ready(Some(data)) => {
|
||||
let message = <Message<B> as Decode>::decode(&mut &data[..])
|
||||
.map_err(|err| {
|
||||
warn!(
|
||||
debug!(
|
||||
target: "sub-libp2p",
|
||||
"Couldn't decode packet sent by the remote: {:?}: {}", data, err.what(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user