Descrese logs verbosity for iptables

pull/6/head
Wojciech Tyczynski 2017-05-18 13:42:49 +02:00
parent e3bb755270
commit 7d44f83441
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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.
}