From bc72d5e7088e801cdd612837e519f9939500883e Mon Sep 17 00:00:00 2001 From: lx <92799281+brilliant-lx@users.noreply.github.com> Date: Tue, 25 Apr 2023 21:31:33 +0800 Subject: [PATCH] log: revert a log back to trace level (#1527) warning level will make the log spam over the screen. --- p2p/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/peer.go b/p2p/peer.go index 1a110dffa6..84efde6a4f 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -435,7 +435,7 @@ func (p *Peer) startProtocols(writeStart <-chan struct{}, writeErr chan<- error) p.log.Trace(fmt.Sprintf("Protocol %s/%d returned", proto.Name, proto.Version)) err = errProtocolReturned } else if !errors.Is(err, io.EOF) { - p.log.Warn(fmt.Sprintf("Protocol %s/%d failed", proto.Name, proto.Version), "err", err) + p.log.Trace(fmt.Sprintf("Protocol %s/%d failed", proto.Name, proto.Version), "err", err) } p.protoErr <- err }()