UPSTREAM: 48085: Move iptables logging in kubeproxy
@@ -1315,7 +1315,8 @@ func (proxier *Proxier) syncProxyRules() {
glog.V(5).Infof("Restoring iptables rules: %s", lines)
err = proxier.iptables.RestoreAll(lines, utiliptables.NoFlushTables, utiliptables.RestoreCounters)
if err != nil {
- glog.Errorf("Failed to execute iptables-restore: %v\nRules:\n%s", err, lines)
+ glog.Errorf("Failed to execute iptables-restore: %v", err)
+ glog.V(2).Infof("Rules:\n%s", lines)
// Revert new local ports.
revertPorts(replacementPortsMap, proxier.portsMap)
return
