Skip to content

Commit

Permalink
Descrese logs verbosity for iptables
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-t committed May 19, 2017
1 parent e3bb755 commit 7d44f83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/proxy/iptables/proxier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Expand Down

0 comments on commit 7d44f83

Please sign in to comment.