From 2c8c37f00e01c230a29cdcc61534f1127f1658cf Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Sat, 9 May 2020 17:42:38 +0300 Subject: [PATCH] trace => warn --- protocols/kad/src/handler.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/kad/src/handler.rs b/protocols/kad/src/handler.rs index b55778a8..64439cea 100644 --- a/protocols/kad/src/handler.rs +++ b/protocols/kad/src/handler.rs @@ -36,7 +36,7 @@ use libp2p_core::{ either::EitherOutput, upgrade::{self, InboundUpgrade, OutboundUpgrade} }; -use log::trace; +use log::warn; use std::{error, fmt, io, pin::Pin, task::Context, task::Poll, time::Duration}; use wasm_timer::Instant; @@ -832,11 +832,11 @@ fn advance_substream( false, ), Poll::Ready(None) => { - trace!("Inbound substream id {:?} cx {:?}: EOF", id, cx); + warn!("Inbound substream id {:?} cx {:?}: EOF", id, cx); (None, None, false) } Poll::Ready(Some(Err(e))) => { - trace!("Inbound substream error id {:?} cx {:?}: {:?}", id, cx, e); + warn!("Inbound substream error id {:?} cx {:?}: {:?}", id, cx, e); (None, None, false) }, },