Browse Source

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.
pull/4903/head
Anton Kaliaev 4 years ago
committed by GitHub
parent
commit
287110d425
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      consensus/state.go

+ 3
- 5
consensus/state.go 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)
}
}


Loading…
Cancel
Save