From 09168b2fd07186c733a81c5de40d63f0a0d8f542 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 9679e4510d..694b04552c 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")