From eb000fb1ae07b1e5c362a1b76198c6695df047bf Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 17 Jan 2019 09:33:39 +0100 Subject: [PATCH] Remove warning for large buffer (#1357) --- substrate/core/network-libp2p/src/custom_proto/upgrade.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/substrate/core/network-libp2p/src/custom_proto/upgrade.rs b/substrate/core/network-libp2p/src/custom_proto/upgrade.rs index 94bc657902..4bc52c2130 100644 --- a/substrate/core/network-libp2p/src/custom_proto/upgrade.rs +++ b/substrate/core/network-libp2p/src/custom_proto/upgrade.rs @@ -111,7 +111,9 @@ impl RegisteredProtocolSubstream { // If the length of the queue goes over a certain arbitrary threshold, we print a warning. if self.send_queue.len() >= 2048 { - warn!(target: "sub-libp2p", "Queue of packets to send over substream is pretty \ + // TODO: this used to be a warning, but is now a `debug` in order to avoid too much + // noise in the logs; see https://github.com/paritytech/substrate/issues/1414 + debug!(target: "sub-libp2p", "Queue of packets to send over substream is pretty \ large: {}", self.send_queue.len()); } }