From f397a1f011a16f5a44042ad62ec916a05b1e6739 Mon Sep 17 00:00:00 2001 From: Aaron U'Ren Date: Sat, 16 Sep 2023 13:05:58 -0500 Subject: [PATCH] feat: increase log level for save/restore msgs --- pkg/controllers/netpol/network_policy_controller.go | 4 ++-- pkg/controllers/netpol/policy.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controllers/netpol/network_policy_controller.go b/pkg/controllers/netpol/network_policy_controller.go index e767708fe8..5bd9852c01 100644 --- a/pkg/controllers/netpol/network_policy_controller.go +++ b/pkg/controllers/netpol/network_policy_controller.go @@ -265,7 +265,7 @@ func (npc *NetworkPolicyController) fullPolicySync() { metrics.ControllerIptablesV6SaveTime.Observe(saveEndTime.Seconds()) } } - klog.V(2).Infof("Saving %v iptables rules took %v", ipFamily, saveEndTime) + klog.V(1).Infof("Saving %v iptables rules took %v", ipFamily, saveEndTime) if err != nil { klog.Errorf("Aborting sync. Failed to run iptables-save: %v", err.Error()) @@ -304,7 +304,7 @@ func (npc *NetworkPolicyController) fullPolicySync() { metrics.ControllerIptablesV6RestoreTime.Observe(restoreEndTime.Seconds()) } } - klog.V(2).Infof("Restoring %v iptables rules took %v", ipFamily, restoreEndTime) + klog.V(1).Infof("Restoring %v iptables rules took %v", ipFamily, restoreEndTime) if err != nil { klog.Errorf("Aborting sync. Failed to run iptables-restore: %v\n%s", diff --git a/pkg/controllers/netpol/policy.go b/pkg/controllers/netpol/policy.go index 4e3a657fe9..e8333ac3d5 100644 --- a/pkg/controllers/netpol/policy.go +++ b/pkg/controllers/netpol/policy.go @@ -159,7 +159,7 @@ func (npc *NetworkPolicyController) syncNetworkPolicyChains(networkPoliciesInfo metrics.ControllerPolicyIpsetV6RestoreTime.Observe(restoreEndTime.Seconds()) } } - klog.V(2).Infof("Restoring %v ipset took %v", ipFamily, restoreEndTime) + klog.V(1).Infof("Restoring %v ipset took %v", ipFamily, restoreEndTime) if err != nil { return nil, nil, fmt.Errorf("failed to perform ipset restore: %w", err)