mirror of https://github.com/k3s-io/k3s
Descrese logs verbosity for iptables
parent
e3bb755270
commit
7d44f83441
|
@ -1497,8 +1497,8 @@ func (proxier *Proxier) syncProxyRules(reason syncReason) {
|
|||
proxier.iptablesLines.Write(proxier.natChains.Bytes())
|
||||
proxier.iptablesLines.Write(proxier.natRules.Bytes())
|
||||
|
||||
if glog.V(4) {
|
||||
glog.V(4).Infof("Restoring iptables rules: %s", proxier.iptablesLines.Bytes())
|
||||
if glog.V(5) {
|
||||
glog.V(5).Infof("Restoring iptables rules: %s", proxier.iptablesLines.Bytes())
|
||||
}
|
||||
err = proxier.iptables.RestoreAll(proxier.iptablesLines.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters)
|
||||
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(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()
|
||||
// Don't log err here - callers might not think it is an error.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue