Skip to content

Commit

Permalink
fix: add logs to summarize
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 12, 2024
1 parent 5e50859 commit eef1d42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/compliance/summarizer/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,16 @@ func (w *Worker) RunJob(ctx context.Context, j types2.Job) error {
return err
}

w.logger.Info("resource lookup result", zap.Any("platformResourceIDs", platformResourceIDs),
zap.Any("lookupResourcesMap", lookupResourcesMap))
w.logger.Info("page size", zap.Int("pageSize", len(page)))
for _, f := range page {
var resource *es2.LookupResource
potentialResources := lookupResourcesMap[f.PlatformResourceID]
for _, r := range potentialResources {
r := r
w.logger.Info("potential resources", zap.Any("potentialResources", potentialResources),
zap.String("f.ResourceType", f.ResourceType), zap.String("r.ResourceType", r.ResourceType))
if strings.ToLower(r.ResourceType) == strings.ToLower(f.ResourceType) {
resource = &r
break
Expand Down

0 comments on commit eef1d42

Please sign in to comment.