From bbb204632b953bbc94d144cb7536ea0a6e9baaea Mon Sep 17 00:00:00 2001 From: jmxnzo Date: Thu, 5 Dec 2024 15:22:20 +0100 Subject: [PATCH] cli/genpolicy: by default do not include log-level 'debug' in Contrast logs --- cli/genpolicy/genpolicy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/genpolicy/genpolicy.go b/cli/genpolicy/genpolicy.go index 8adfce53d..21af4a3af 100644 --- a/cli/genpolicy/genpolicy.go +++ b/cli/genpolicy/genpolicy.go @@ -62,7 +62,7 @@ func (r *Runner) Run(ctx context.Context, yamlPath string, logger *slog.Logger) genpolicy := exec.CommandContext(ctx, r.genpolicy.Path(), args...) genpolicy.Env = os.Environ() if _, hasRustLog := os.LookupEnv("RUST_LOG"); !hasRustLog { - genpolicy.Env = append(genpolicy.Env, "RUST_LOG=debug") + genpolicy.Env = append(genpolicy.Env, "RUST_LOG=info") } if _, hasRustBacktrace := os.LookupEnv("RUST_BACKTRACE"); !hasRustBacktrace { genpolicy.Env = append(genpolicy.Env, "RUST_BACKTRACE=1")