Skip to content

Commit

Permalink
fix: add verbosity to background scanner log (kyverno#10404)
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
  • Loading branch information
vishal-chdhry authored Jun 6, 2024
1 parent 85ad874 commit 2104171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/report/utils/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (s *scanner) validateResource(ctx context.Context, resource unstructured.Un
WithNamespaceLabels(nsLabels)
response := s.engine.Validate(ctx, policyCtx)
if len(response.PolicyResponse.Rules) > 0 {
s.logger.Info("validateResource", "policy", policy, "response", response)
s.logger.V(6).Info("validateResource", "policy", policy, "response", response)
}
return &response, nil
}
Expand All @@ -140,7 +140,7 @@ func (s *scanner) validateImages(ctx context.Context, resource unstructured.Unst
WithNamespaceLabels(nsLabels)
response, _ := s.engine.VerifyAndPatchImages(ctx, policyCtx)
if len(response.PolicyResponse.Rules) > 0 {
s.logger.Info("validateImages", "policy", policy, "response", response)
s.logger.V(6).Info("validateImages", "policy", policy, "response", response)
}
return &response, nil
}

0 comments on commit 2104171

Please sign in to comment.