Skip to content

Commit

Permalink
Updated log level to v2 for sysctlFSFileMax. (#2137)
Browse files Browse the repository at this point in the history
This is very importatnt log for trouble-shooting, we should update
it to v2 by default.
  • Loading branch information
gyliu513 authored and aledbf committed Feb 23, 2018
1 parent 309a794 commit f26c881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/ingress/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
wp = 1
}
maxOpenFiles := (sysctlFSFileMax() / wp) - 1024
glog.V(3).Infof("maximum number of open file descriptors : %v", maxOpenFiles)
glog.V(2).Infof("maximum number of open file descriptors : %v", maxOpenFiles)
if maxOpenFiles < 1024 {
// this means the value of RLIMIT_NOFILE is too low.
maxOpenFiles = 1024
Expand Down
2 changes: 1 addition & 1 deletion internal/ingress/controller/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ func sysctlFSFileMax() int {
// returning 0 means don't render the value
return 0
}
glog.V(3).Infof("system fs.file-max=%v", fileMax)
glog.V(2).Infof("system fs.file-max=%v", fileMax)
return fileMax
}

0 comments on commit f26c881

Please sign in to comment.