Skip to content

Commit c41057b

Browse files
author
Jason Yellick
committed
[FAB-6076] Fix typo in implicit policy log msg
There is a log message which was recently changed which logs that: "Only %d policies were satisfied, but needed %d" But the value of the first parameter is being set to the number of remaining policies to be satisfied, not the number that were satisfied. This CR fixes it. Change-Id: Ife82fbe1792fd5dc6a672158cd12dfb02fb9695a Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent a657db2 commit c41057b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/policies/implicitmeta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (imp *implicitMetaPolicy) Evaluate(signatureSet []*cb.SignedData) error {
7474
// This log message may be large and expensive to construct, so worth checking the log level
7575
if logger.IsEnabledFor(logging.DEBUG) {
7676
var b bytes.Buffer
77-
b.WriteString(fmt.Sprintf("Evaluation Failed: Only %d policies were satisfied, but needed %d of [ ", remaining, imp.threshold))
77+
b.WriteString(fmt.Sprintf("Evaluation Failed: Only %d policies were satisfied, but needed %d of [ ", imp.threshold-remaining, imp.threshold))
7878
for m := range imp.managers {
7979
b.WriteString(m)
8080
b.WriteString(".")

0 commit comments

Comments
 (0)