Skip to content

Commit

Permalink
[FAB-6194] stop log stacktrace for stateinfo check
Browse files Browse the repository at this point in the history
Currently while doing validation of state info message there is a long
stack trace printed which is misleading. This commit takes care to stop
printing the stack trace.

Change-Id: Ibb3570514d42f446ce2586f834fa7b02800fb003
Signed-off-by: Artem Barger <bartem@il.ibm.com>
  • Loading branch information
C0rWin committed Sep 17, 2017
1 parent 950f6ce commit 817af8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/gossip/gossip_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ func (g *gossipServiceImpl) validateMsg(msg proto.ReceivedMessage) bool {

if msg.GetGossipMessage().IsStateInfoMsg() {
if err := g.validateStateInfoMsg(msg.GetGossipMessage()); err != nil {
g.logger.Warningf("StateInfo message %v is found invalid: %+v", msg, err)
g.logger.Warningf("StateInfo message %v is found invalid: %v", msg, err)
return false
}
}
Expand Down

0 comments on commit 817af8b

Please sign in to comment.