Skip to content

Commit

Permalink
Merge pull request #60 from cloudnativelabs/fix-glog-goflag
Browse files Browse the repository at this point in the history
Apply glog/goflag noisy log workaround
  • Loading branch information
murali-reddy committed Jul 13, 2017
2 parents dca10e9 + 78a0aeb commit 1633b76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kube-router.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"fmt"
"os"

"flag"

"github.com/cloudnativelabs/kube-router/app"
"github.com/cloudnativelabs/kube-router/app/options"
"github.com/spf13/pflag"
Expand All @@ -15,6 +17,10 @@ func main() {
config.AddFlags(pflag.CommandLine)
pflag.Parse()

// Workaround for this issue:
// https://github.com/kubernetes/kubernetes/issues/17162
flag.CommandLine.Parse([]string{})

pflag.Set("logtostderr", "true")

if config.HelpRequested {
Expand Down

0 comments on commit 1633b76

Please sign in to comment.