Skip to content

Commit

Permalink
Merge pull request #40 from flant/fix-logging-before-flag-parse
Browse files Browse the repository at this point in the history
Fix warning `ERROR: logging before flag.Parse`
  • Loading branch information
distorhead authored Dec 25, 2018
2 parents 8029c51 + b9c57b1 commit 3dd484f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/kubedog/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"flag"
"fmt"
"os"
"time"
Expand All @@ -13,6 +14,9 @@ import (
)

func main() {
// set flag.Parsed() for glog
flag.CommandLine.Parse([]string{})

err := kube.Init(kube.InitOptions{})
if err != nil {
fmt.Fprintf(os.Stderr, "Unable to initialize kube: %s\n", err)
Expand Down

0 comments on commit 3dd484f

Please sign in to comment.