Skip to content

Commit

Permalink
refactor: removed useless log
Browse files Browse the repository at this point in the history
  • Loading branch information
fredmaggiowski committed Jun 28, 2023
1 parent 8441c8d commit f565e21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/opaevaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,11 @@ func (evaluator *OPAEvaluator) Evaluate(logger *logrus.Entry) (interface{}, erro
"policy_name": evaluator.PolicyName,
}).Observe(float64(opaEvaluationTime.Milliseconds()))

laxAllowed := verifyAllowed(results)
fmt.Printf("AAAAA %t %t %+v\n\n", laxAllowed, results.Allowed(), results)

logger.WithFields(logrus.Fields{
"evaluationTimeMicroseconds": opaEvaluationTime.Microseconds(),
"policyName": evaluator.PolicyName,
"partialEval": false,
"allowed": laxAllowed,
"allowed": verifyAllowed(results),
"resultsLength": len(results),
"matchedPath": evaluator.routerInfo.MatchedPath,
"requestedPath": evaluator.routerInfo.RequestedPath,
Expand Down

0 comments on commit f565e21

Please sign in to comment.