Skip to content

Commit

Permalink
feat: increase log level for save/restore msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren committed Oct 7, 2023
1 parent a6cd5b0 commit f397a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/netpol/network_policy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/netpol/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f397a1f

Please sign in to comment.