Commit d354e0bf authored by Shyam Jeedigunta's avatar Shyam Jeedigunta

Move iptables logging in kubeproxy from Errorf to V(2).Infof

parent 637cc0a8
...@@ -1571,7 +1571,8 @@ func (proxier *Proxier) syncProxyRules() { ...@@ -1571,7 +1571,8 @@ func (proxier *Proxier) syncProxyRules() {
glog.V(5).Infof("Restoring iptables rules: %s", proxier.iptablesData.Bytes()) glog.V(5).Infof("Restoring iptables rules: %s", proxier.iptablesData.Bytes())
err = proxier.iptables.RestoreAll(proxier.iptablesData.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters) err = proxier.iptables.RestoreAll(proxier.iptablesData.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters)
if err != nil { if err != nil {
glog.Errorf("Failed to execute iptables-restore: %v\nRules:\n%s", err, proxier.iptablesData.Bytes()) glog.Errorf("Failed to execute iptables-restore: %v", err)
glog.V(2).Infof("Rules:\n%s", proxier.iptablesData.Bytes())
// Revert new local ports. // Revert new local ports.
revertPorts(replacementPortsMap, proxier.portsMap) revertPorts(replacementPortsMap, proxier.portsMap)
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment