consensus: bring back log.Error statement (#4899)

Refs #3406

cs.Logger is protected by a global mutex, so it cannot be a reason for
the halt in #3401.
This commit is contained in:
Anton Kaliaev
2020-05-27 13:31:02 +04:00
committed by GitHub
parent 2014357a19
commit 287110d425

View File

@@ -734,11 +734,9 @@ func (cs *State) handleMsg(mi msgInfo) {
return
}
if err != nil { // nolint:staticcheck
// Causes TestReactorValidatorSetChanges to timeout
// https://github.com/tendermint/tendermint/issues/3406
// cs.Logger.Error("Error with msg", "height", cs.Height, "round", cs.Round,
// "peer", peerID, "err", err, "msg", msg)
if err != nil {
cs.Logger.Error("Error with msg", "height", cs.Height, "round", cs.Round,
"peer", peerID, "err", err, "msg", msg)
}
}