mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 13:50:01 +00:00 
			
		
		
		
	Merge pull request #100874 from lojies/proxyiptableslog
improve the readability of log
This commit is contained in:
		| @@ -1615,7 +1615,7 @@ func (proxier *Proxier) syncProxyRules() { | |||||||
| 	numberNatIptablesRules := utilproxy.CountBytesLines(proxier.natRules.Bytes()) | 	numberNatIptablesRules := utilproxy.CountBytesLines(proxier.natRules.Bytes()) | ||||||
| 	metrics.IptablesRulesTotal.WithLabelValues(string(utiliptables.TableNAT)).Set(float64(numberNatIptablesRules)) | 	metrics.IptablesRulesTotal.WithLabelValues(string(utiliptables.TableNAT)).Set(float64(numberNatIptablesRules)) | ||||||
|  |  | ||||||
| 	klog.V(5).InfoS("Restoring iptables", "rules", proxier.iptablesData.Bytes()) | 	klog.V(5).InfoS("Restoring iptables", "rules", string(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 { | ||||||
| 		klog.ErrorS(err, "Failed to execute iptables-restore") | 		klog.ErrorS(err, "Failed to execute iptables-restore") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user