Skip to content

Commit

Permalink
cmd: crio: suppress logging before flag.Parse
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
  • Loading branch information
runcom committed Jun 14, 2018
1 parent 3a3f346 commit 769a796
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/crio/main.go
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
goflag "flag"
"fmt"
"net"
"net/http"
Expand Down Expand Up @@ -174,6 +175,9 @@ func catchShutdown(gserver *grpc.Server, sserver *server.Server, hserver *http.S
}

func main() {
// https://github.com/kubernetes/kubernetes/issues/17162
goflag.CommandLine.Parse([]string{})

if reexec.Init() {
return
}
Expand Down

0 comments on commit 769a796

Please sign in to comment.