Skip to content

Commit

Permalink
internal/consensus: update error log (#6863) (#6867)
Browse files Browse the repository at this point in the history
Issues reported in Osmosis, where the message is extremely long. Also, there is absolutely no reason to log the message IMO. If we must, we can make the message log DEBUG.

(cherry picked from commit 58a6cfff9a3e370e1bb5eabfd86091e0b1186a22)

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
  • Loading branch information
tnasu and alexanderbez committed Jan 25, 2022
1 parent 2933178 commit 5755e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,8 @@ func (cs *State) handleMsg(mi msgInfo) {
"height", cs.Height,
"round", cs.Round,
"peer", peerID,
"msg_type", fmt.Sprintf("%T", msg),
"err", err,
"msg", msg,
)
}
}
Expand Down

0 comments on commit 5755e1a

Please sign in to comment.