From 0de1f66f32de0bf2a02675421ce1f24a410b7ea4 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Tue, 14 Jan 2025 09:27:16 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Don't=20write=20report=20collect?= =?UTF-8?q?ion=20for=20debug=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cli/reporter/cli_reporter.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cli/reporter/cli_reporter.go b/cli/reporter/cli_reporter.go index 8eed32b0..1fae1008 100644 --- a/cli/reporter/cli_reporter.go +++ b/cli/reporter/cli_reporter.go @@ -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" @@ -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: