mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 17:57:33 +00:00
Descrese logs verbosity for iptables
This commit is contained in:
@@ -1497,8 +1497,8 @@ func (proxier *Proxier) syncProxyRules(reason syncReason) {
|
|||||||
proxier.iptablesLines.Write(proxier.natChains.Bytes())
|
proxier.iptablesLines.Write(proxier.natChains.Bytes())
|
||||||
proxier.iptablesLines.Write(proxier.natRules.Bytes())
|
proxier.iptablesLines.Write(proxier.natRules.Bytes())
|
||||||
|
|
||||||
if glog.V(4) {
|
if glog.V(5) {
|
||||||
glog.V(4).Infof("Restoring iptables rules: %s", proxier.iptablesLines.Bytes())
|
glog.V(5).Infof("Restoring iptables rules: %s", proxier.iptablesLines.Bytes())
|
||||||
}
|
}
|
||||||
err = proxier.iptables.RestoreAll(proxier.iptablesLines.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters)
|
err = proxier.iptables.RestoreAll(proxier.iptablesLines.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@@ -397,7 +397,7 @@ func (runner *runner) run(op operation, args []string) ([]byte, error) {
|
|||||||
|
|
||||||
fullArgs := append(runner.waitFlag, string(op))
|
fullArgs := append(runner.waitFlag, string(op))
|
||||||
fullArgs = append(fullArgs, args...)
|
fullArgs = append(fullArgs, args...)
|
||||||
glog.V(4).Infof("running iptables %s %v", string(op), args)
|
glog.V(5).Infof("running iptables %s %v", string(op), args)
|
||||||
return runner.exec.Command(iptablesCmd, fullArgs...).CombinedOutput()
|
return runner.exec.Command(iptablesCmd, fullArgs...).CombinedOutput()
|
||||||
// Don't log err here - callers might not think it is an error.
|
// Don't log err here - callers might not think it is an error.
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user