diff --git a/pkg/network/server.go b/pkg/network/server.go index c702a66ac..3eb6e06f7 100644 --- a/pkg/network/server.go +++ b/pkg/network/server.go @@ -393,7 +393,7 @@ func (s *Server) run() { s.lock.Unlock() s.log.Warn("peer disconnected", zap.Stringer("addr", drop.peer.RemoteAddr()), - zap.String("reason", drop.reason.Error()), + zap.Error(drop.reason), zap.Int("peerCount", s.PeerCount())) addr := drop.peer.PeerAddr().String() if drop.reason == errIdenticalID {