Skip to content

Commit

Permalink
Merge pull request #1969 from opengovern/fix-web-ui
Browse files Browse the repository at this point in the history
fix: add more logs for compliance summarizer
  • Loading branch information
artaasadi authored Nov 13, 2024
2 parents d9d2ca0 + 7b0bc93 commit 09b30f3
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 09b30f3

Please sign in to comment.