From da09fda575c614d695fcf96ce774d714a854a288 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 28 Jan 2020 16:40:38 +0300 Subject: [PATCH] network: add debug on message receival --- pkg/network/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/network/server.go b/pkg/network/server.go index bd8f0f0ab..2a077ec25 100644 --- a/pkg/network/server.go +++ b/pkg/network/server.go @@ -607,6 +607,10 @@ func (s *Server) requestBlocks(p Peer) error { // handleMessage processes the given message. func (s *Server) handleMessage(peer Peer, msg *Message) error { + s.log.Debug("got msg", + zap.Stringer("addr", peer.RemoteAddr()), + zap.String("type", string(msg.CommandType()))) + // Make sure both server and peer are operating on // the same network. if msg.Magic != s.Net {