mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-14 13:51:21 +00:00
move some logs to debug
This commit is contained in:
@ -133,8 +133,8 @@ func (conR *ConsensusReactor) RemovePeer(peer *p2p.Peer, reason interface{}) {
|
|||||||
// Implements Reactor
|
// Implements Reactor
|
||||||
// NOTE: We process these messages even when we're fast_syncing.
|
// NOTE: We process these messages even when we're fast_syncing.
|
||||||
func (conR *ConsensusReactor) Receive(chId byte, peer *p2p.Peer, msgBytes []byte) {
|
func (conR *ConsensusReactor) Receive(chId byte, peer *p2p.Peer, msgBytes []byte) {
|
||||||
log.Info("Receive", "channel", chId, "peer", peer, "bytes", msgBytes)
|
|
||||||
if !conR.IsRunning() {
|
if !conR.IsRunning() {
|
||||||
|
log.Debug("Receive", "channel", chId, "peer", peer, "bytes", msgBytes)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ func (conR *ConsensusReactor) Receive(chId byte, peer *p2p.Peer, msgBytes []byte
|
|||||||
log.Warn("Error decoding message", "channel", chId, "peer", peer, "msg", msg, "error", err, "bytes", msgBytes)
|
log.Warn("Error decoding message", "channel", chId, "peer", peer, "msg", msg, "error", err, "bytes", msgBytes)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Info("Receive", "channel", chId, "peer", peer, "msg", msg, "rsHeight", rs.Height) //, "bytes", msgBytes)
|
log.Debug("Receive", "channel", chId, "peer", peer, "msg", msg, "rsHeight", rs.Height)
|
||||||
|
|
||||||
switch chId {
|
switch chId {
|
||||||
case StateChannel:
|
case StateChannel:
|
||||||
@ -471,7 +471,7 @@ OUTER_LOOP:
|
|||||||
sleeping = 0
|
sleeping = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("gossipVotesRoutine", "rsHeight", rs.Height, "rsRound", rs.Round,
|
log.Debug("gossipVotesRoutine", "rsHeight", rs.Height, "rsRound", rs.Round,
|
||||||
"prsHeight", prs.Height, "prsRound", prs.Round, "prsStep", prs.Step)
|
"prsHeight", prs.Height, "prsRound", prs.Round, "prsStep", prs.Step)
|
||||||
|
|
||||||
// If height matches, then send LastCommit, Prevotes, Precommits.
|
// If height matches, then send LastCommit, Prevotes, Precommits.
|
||||||
|
@ -151,7 +151,7 @@ func (c *MConnection) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *MConnection) flush() {
|
func (c *MConnection) flush() {
|
||||||
log.Info("Flush", "conn", c)
|
log.Debug("Flush", "conn", c)
|
||||||
err := c.bufWriter.Flush()
|
err := c.bufWriter.Flush()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("MConnection flush failed", "error", err)
|
log.Warn("MConnection flush failed", "error", err)
|
||||||
@ -426,7 +426,7 @@ FOR_LOOP:
|
|||||||
break FOR_LOOP
|
break FOR_LOOP
|
||||||
}
|
}
|
||||||
if msgBytes != nil {
|
if msgBytes != nil {
|
||||||
log.Info("Received bytes", "chId", pkt.ChannelId, "msgBytes", msgBytes)
|
log.Debug("Received bytes", "chId", pkt.ChannelId, "msgBytes", msgBytes)
|
||||||
c.onReceive(pkt.ChannelId, msgBytes)
|
c.onReceive(pkt.ChannelId, msgBytes)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@ -565,7 +565,7 @@ func (ch *Channel) nextMsgPacket() msgPacket {
|
|||||||
// Not goroutine-safe
|
// Not goroutine-safe
|
||||||
func (ch *Channel) writeMsgPacketTo(w io.Writer) (n int64, err error) {
|
func (ch *Channel) writeMsgPacketTo(w io.Writer) (n int64, err error) {
|
||||||
packet := ch.nextMsgPacket()
|
packet := ch.nextMsgPacket()
|
||||||
log.Info("Write Msg Packet", "conn", ch.conn, "packet", packet)
|
log.Debug("Write Msg Packet", "conn", ch.conn, "packet", packet)
|
||||||
binary.WriteByte(packetTypeMsg, w, &n, &err)
|
binary.WriteByte(packetTypeMsg, w, &n, &err)
|
||||||
binary.WriteBinary(packet, w, &n, &err)
|
binary.WriteBinary(packet, w, &n, &err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -577,7 +577,7 @@ func (ch *Channel) writeMsgPacketTo(w io.Writer) (n int64, err error) {
|
|||||||
// Handles incoming msgPackets. Returns a msg bytes if msg is complete.
|
// Handles incoming msgPackets. Returns a msg bytes if msg is complete.
|
||||||
// Not goroutine-safe
|
// Not goroutine-safe
|
||||||
func (ch *Channel) recvMsgPacket(packet msgPacket) ([]byte, error) {
|
func (ch *Channel) recvMsgPacket(packet msgPacket) ([]byte, error) {
|
||||||
log.Info("Read Msg Packet", "conn", ch.conn, "packet", packet)
|
log.Debug("Read Msg Packet", "conn", ch.conn, "packet", packet)
|
||||||
if binary.MaxBinaryReadSize < len(ch.recving)+len(packet.Bytes) {
|
if binary.MaxBinaryReadSize < len(ch.recving)+len(packet.Bytes) {
|
||||||
return nil, binary.ErrBinaryReadSizeOverflow
|
return nil, binary.ErrBinaryReadSizeOverflow
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user