From d8ceb98a0f1b347e2372a5d48beb19bef306432b Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sat, 14 Sep 2024 02:31:15 -0500 Subject: [PATCH] chore(util): Change network policy log level to debug --- internal/util/cmd_setup.go | 2 +- internal/util/cmd_teardown.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/util/cmd_setup.go b/internal/util/cmd_setup.go index 915019af..59bceb75 100644 --- a/internal/util/cmd_setup.go +++ b/internal/util/cmd_setup.go @@ -412,7 +412,7 @@ func createJob(ctx context.Context, conf *config.Global, actionName string) erro }, } - nsLog.Info("Creating network policy") + nsLog.Debug("Creating network policy") if _, err := conf.Client.NetworkPolicies().Create(ctx, &policy, metav1.CreateOptions{}); err != nil { nsLog.Error("Failed to create network policy", "error", err) viper.Set(consts.CreateNetworkPolicyKey, "false") diff --git a/internal/util/cmd_teardown.go b/internal/util/cmd_teardown.go index a51626d7..66e09478 100644 --- a/internal/util/cmd_teardown.go +++ b/internal/util/cmd_teardown.go @@ -29,7 +29,7 @@ func Teardown(conf *config.Global) { if viper.GetBool(consts.CreateNetworkPolicyKey) { netPolLog := slog.With("name", conf.Job.Name) - netPolLog.Info("Cleaning up network policy") + netPolLog.Debug("Cleaning up network policy") if err := conf.Client.NetworkPolicies().Delete(ctx, conf.Job.Name, opts); err != nil { netPolLog.Error("Failed to delete network policy", "error", err) }