Skip to content

Commit

Permalink
Orderer: fix logging message in case of filter failure
Browse files Browse the repository at this point in the history
The object that was logged was the wrong error, I fixed it.

Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
Change-Id: Ia91adf8c5f9d5cbfecea30c3719f08300cb77f49
  • Loading branch information
yacovm committed Mar 12, 2017
1 parent b3d3254 commit 70fd869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orderer/common/broadcast/broadcast.go
Expand Up @@ -150,7 +150,7 @@ func (bh *handlerImpl) Handle(srv ab.AtomicBroadcast_BroadcastServer) error {

if filterErr != nil {
if logger.IsEnabledFor(logging.WARNING) {
logger.Warningf("Rejecting broadcast message because of filter error: %s", err)
logger.Warningf("Rejecting broadcast message because of filter error: %s", filterErr)
}
return srv.Send(&ab.BroadcastResponse{Status: cb.Status_BAD_REQUEST})
}
Expand Down

0 comments on commit 70fd869

Please sign in to comment.