Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Hurley <[email protected]>
  • Loading branch information
shawn-hurley committed Nov 18, 2024
1 parent 04f495e commit 06df669
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions provider/internal/builtin/service_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@ func (p *builtinServiceClient) Evaluate(ctx context.Context, cap string, conditi
return response, fmt.Errorf("unable to find XML files: %v", err)
}
for _, file := range xmlFiles {
p.log.Info("xml file searching files", "file", file, "query", query)
p.log.Info("xml file searching files", "file", file, "query", cond.XML.XPath)
nodes, err := queryXMLFile(file, query)
if err != nil {
p.log.V(5).Error(err, "failed to query xml file", "file", file)
continue
}
p.log.Info("xml file searching files result", "file", file, "query", query, "nodes", nodes)
p.log.Info("xml file searching files", "file", file, "query", cond.XML.XPath, "found-nodes", len(nodes))
if len(nodes) != 0 {
response.Matched = true
for _, node := range nodes {
Expand Down Expand Up @@ -252,7 +252,7 @@ func (p *builtinServiceClient) Evaluate(ctx context.Context, cap string, conditi
for _, file := range xmlFiles {
nodes, err := queryXMLFile(file, query)
if err != nil {
p.log.V(5).Error(err, "failed to query xml file", "file", file)
p.log.Error(err, "failed to query xml file", "file", file)
continue
}

Expand Down

0 comments on commit 06df669

Please sign in to comment.