Skip to content

Commit

Permalink
cli/genpolicy: by default do not include log-level 'debug' in Contras…
Browse files Browse the repository at this point in the history
…t logs
  • Loading branch information
jmxnzo committed Dec 5, 2024
1 parent 9150bce commit bbb2046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/genpolicy/genpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bbb2046

Please sign in to comment.