Using rlog in agent and tapper & removing unreferenced code (#289)

* .
This commit is contained in:
Igor Gov
2021-09-22 06:24:19 +03:00
committed by GitHub
parent 043b845c06
commit 749bee6d55
6 changed files with 25 additions and 85 deletions

View File

@@ -4,6 +4,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"github.com/romana/rlog"
"reflect"
"regexp"
"strings"
@@ -65,7 +66,7 @@ func MatchRequestPolicy(harEntry har.Entry, service string) []RulesMatched {
if err != nil {
continue
}
fmt.Println(matchValue, rule.Value)
rlog.Info(matchValue, rule.Value)
} else {
val := fmt.Sprint(out)
matchValue, err = regexp.MatchString(rule.Value, val)