mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-20 02:01:20 +00:00
Log embellishment
This commit is contained in:
parent
7983113024
commit
e4435a8d1e
@ -156,6 +156,7 @@ func (bA *BitArray) Sub(o *BitArray) *BitArray {
|
|||||||
i := len(o.Elems) - 1
|
i := len(o.Elems) - 1
|
||||||
if i >= 0 {
|
if i >= 0 {
|
||||||
for idx := i * 64; idx < o.Bits; idx++ {
|
for idx := i * 64; idx < o.Bits; idx++ {
|
||||||
|
// NOTE: each individual GetIndex() call to o is safe.
|
||||||
c.setIndex(idx, c.getIndex(idx) && !o.GetIndex(idx))
|
c.setIndex(idx, c.getIndex(idx) && !o.GetIndex(idx))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -419,7 +419,7 @@ FOR_LOOP:
|
|||||||
}
|
}
|
||||||
msgBytes := channel.recvMsgPacket(pkt)
|
msgBytes := channel.recvMsgPacket(pkt)
|
||||||
if msgBytes != nil {
|
if msgBytes != nil {
|
||||||
//log.Debug("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:
|
||||||
@ -605,7 +605,7 @@ type msgPacket struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p msgPacket) String() string {
|
func (p msgPacket) String() string {
|
||||||
return fmt.Sprintf("MsgPacket{%X:%X}", p.ChannelId, p.Bytes)
|
return fmt.Sprintf("MsgPacket{%X:%X T:%X}", p.ChannelId, p.Bytes, p.EOF)
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user