Skip to content

Commit

Permalink
🧹 Don't write report collection for debug output
Browse files Browse the repository at this point in the history
I added this because our tests loaded these from a file. However, the
more I think about it, its probably not a good idea to do this because
it can get really large
  • Loading branch information
jaym committed Jan 14, 2025
1 parent b6094fe commit 0de1f66
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cli/reporter/cli_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"go.mondoo.com/cnquery/v11"
"go.mondoo.com/cnquery/v11/cli/printer"
"go.mondoo.com/cnquery/v11/cli/theme/colors"
"go.mondoo.com/cnquery/v11/logger"
"go.mondoo.com/cnquery/v11/mqlc"
"go.mondoo.com/cnquery/v11/providers"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/resources"
Expand Down Expand Up @@ -109,8 +108,6 @@ func (r *Reporter) WithOutput(out io.Writer) *Reporter {
}

func (r *Reporter) WriteReport(ctx context.Context, data *policy.ReportCollection) error {
// write data to file for debugging
logger.DebugDumpJSON("report-collection", data)
features := cnquery.GetFeatures(ctx)
switch r.Conf.format {
case FormatCompact, FormatSummary, FormatFull:
Expand Down

0 comments on commit 0de1f66

Please sign in to comment.