Skip to content

Commit

Permalink
bug: addtional logging context
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan committed Apr 4, 2022
1 parent 03f24f4 commit d7d452b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compliance/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (w *cm) GenerateComplianceReport(ctx context.Context, spec v1alpha1.ReportS
//create cluster compliance details report
err = w.createComplianceDetailReport(ctx, spec, smd, checkIdsToResults, st)
if err != nil {
return fmt.Errorf("failed to create compliance detail report name: %s with error %v", strings.ToLower(fmt.Sprintf("%s-%s", spec.Name, "details")), err)
return fmt.Errorf("failed to create compliance detail report name: %s with error %w", strings.ToLower(fmt.Sprintf("%s-%s", spec.Name, "details")), err)
}
//generate cluster compliance report
updatedReport, err := w.createComplianceReport(ctx, spec, st, controlChecks)
Expand Down

0 comments on commit d7d452b

Please sign in to comment.