From d354e0bf4fa156f3d49dd64b3da94080f69e70df Mon Sep 17 00:00:00 2001 From: Shyam Jeedigunta Date: Mon, 26 Jun 2017 13:19:28 +0200 Subject: [PATCH] Move iptables logging in kubeproxy from Errorf to V(2).Infof --- pkg/proxy/iptables/proxier.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/proxy/iptables/proxier.go b/pkg/proxy/iptables/proxier.go index 06651d3c9cf..8e6c444e822 100644 --- a/pkg/proxy/iptables/proxier.go +++ b/pkg/proxy/iptables/proxier.go @@ -1571,7 +1571,8 @@ func (proxier *Proxier) syncProxyRules() { glog.V(5).Infof("Restoring iptables rules: %s", proxier.iptablesData.Bytes()) err = proxier.iptables.RestoreAll(proxier.iptablesData.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters) 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. revertPorts(replacementPortsMap, proxier.portsMap) return