Skip to content

Commit

Permalink
Mute logrus log for ipset
Browse files Browse the repository at this point in the history
Dont need to change the vendored code.
  • Loading branch information
halfcrazy committed Apr 29, 2019
1 parent 5d2e1f4 commit ce105df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions pkg/daemon/config.go
Expand Up @@ -3,8 +3,10 @@ package daemon
import (
"flag"
"fmt"
"io/ioutil"
"os"

"github.com/sirupsen/logrus"
"github.com/spf13/pflag"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
Expand Down Expand Up @@ -32,6 +34,9 @@ func ParseFlags() (*Configuration, error) {
argServiceClusterIPRange = pflag.String("service-cluster-ip-range", "10.96.0.0/12", "The kubernetes service cluster ip range")
)

// mute log for ipset lib
logrus.SetOutput(ioutil.Discard)

flag.Set("alsologtostderr", "true")

klogFlags := flag.NewFlagSet("klog", flag.ExitOnError)
Expand Down
10 changes: 5 additions & 5 deletions vendor/github.com/projectcalico/felix/ipsets/ipsets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce105df

Please sign in to comment.