Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,7 @@ func (le *LeaderEngine) IsLeader() bool {
func init() {
// Avoid logging glog from the k8s.io package
flag.Lookup("stderrthreshold").Value.Set("FATAL")
flag.Parse()
//Convinces goflags that we have called Parse() to avoid noisy logs.
//OSS Issue: kubernetes/kubernetes#17162.
flag.CommandLine.Parse([]string{})
}
5 changes: 5 additions & 0 deletions releasenotes/notes/fix-logger-glog-80cfbb7958da4c64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Fix the command-line flag parsing regression caused by a transitive dependency importing the
glog library. `agent` flags should now behave as in beta9.