Skip to content

Commit

Permalink
fix: add more logs for compliance summarizer
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 13, 2024
1 parent 619cac0 commit 7b0bc93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/compliance/summarizer/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ func (w *Worker) RunJob(ctx context.Context, j types2.Job) error {
// break
// }
//}
resource = &potentialResources[0]
if len(potentialResources) > 0 {
resource = &potentialResources[0]
}
w.logger.Info("Before adding resource finding", zap.String("platform_resource_id", f.PlatformResourceID),
zap.Any("resource", resource))
jd.AddComplianceResult(w.logger, j, f, resource)
Expand Down

0 comments on commit 7b0bc93

Please sign in to comment.