Skip to content
Permalink
Browse files

Mute logrus log for ipset

Dont need to change the vendored code.
  • Loading branch information...
halfcrazy committed Apr 29, 2019
1 parent 5d2e1f4 commit ce105dffb1a6634bc414ed33030ee61ef507c106
Showing with 10 additions and 5 deletions.
  1. +5 −0 pkg/daemon/config.go
  2. +5 −5 vendor/github.com/projectcalico/felix/ipsets/ipsets.go
@@ -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"
@@ -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)

Some generated files are not rendered by default. Learn more.

0 comments on commit ce105df

Please sign in to comment.
You can’t perform that action at this time.