Skip to content

Commit

Permalink
chore(util): Change network policy log level to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 14, 2024
1 parent 4ea6449 commit d8ceb98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/util/cmd_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion internal/util/cmd_teardown.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d8ceb98

Please sign in to comment.