mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-29 04:31:44 +00:00
Remoted bytes from logging messages
This commit is contained in:
@ -79,6 +79,10 @@ func main() {
|
|||||||
if barak.rootDir == "" {
|
if barak.rootDir == "" {
|
||||||
barak.rootDir = os.Getenv("HOME") + "/.barak"
|
barak.rootDir = os.Getenv("HOME") + "/.barak"
|
||||||
}
|
}
|
||||||
|
err = EnsureDir(barak.rootDir)
|
||||||
|
if err != nil {
|
||||||
|
panic(Fmt("Error creating barak rootDir: %v", err))
|
||||||
|
}
|
||||||
|
|
||||||
// Write pid to file.
|
// Write pid to file.
|
||||||
err = AtomicWriteFile(barak.rootDir+"/pidfile", []byte(Fmt("%v", barak.pid)))
|
err = AtomicWriteFile(barak.rootDir+"/pidfile", []byte(Fmt("%v", barak.pid)))
|
||||||
|
@ -136,7 +136,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.Debug("Receive", "channel", chId, "peer", peer, "msg", msg_, "bytes", msgBytes)
|
log.Debug("Receive", "channel", chId, "peer", peer, "msg", msg_) //, "bytes", msgBytes)
|
||||||
|
|
||||||
switch chId {
|
switch chId {
|
||||||
case StateChannel:
|
case StateChannel:
|
||||||
@ -295,7 +295,7 @@ func (conR *ConsensusReactor) sendNewRoundStepRoutine(peer *p2p.Peer) {
|
|||||||
peer.Send(StateChannel, nrsMsg)
|
peer.Send(StateChannel, nrsMsg)
|
||||||
}
|
}
|
||||||
if csMsg != nil {
|
if csMsg != nil {
|
||||||
peer.Send(StateChannel, nrsMsg)
|
peer.Send(StateChannel, csMsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ func (c *MConnection) Send(chId byte, msg interface{}) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug("Send", "channel", chId, "connection", c, "msg", msg, "bytes", binary.BinaryBytes(msg))
|
log.Debug("Send", "channel", chId, "connection", c, "msg", msg) //, "bytes", binary.BinaryBytes(msg))
|
||||||
|
|
||||||
// Send message to channel.
|
// Send message to channel.
|
||||||
channel, ok := c.channelsIdx[chId]
|
channel, ok := c.channelsIdx[chId]
|
||||||
|
Reference in New Issue
Block a user