Merge pull request #246 from aaron-prindle/spam-in-logs

Fixed spam caused by etcdserver/api/v2http logging through capnslog, …
pull/250/head
dlorenc 2016-06-30 13:00:05 -07:00 committed by GitHub
commit 4686db678d
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import (
"os"
"os/signal"
"github.com/coreos/pkg/capnslog"
"k8s.io/kubernetes/pkg/capabilities"
"k8s.io/kubernetes/pkg/kubelet/types"
"k8s.io/minikube/pkg/localkube"
@ -37,6 +38,11 @@ func StartLocalkube() {
os.Exit(0)
}
// Get the etcd logger for the api repo
apiRepoLogger := capnslog.MustRepoLogger("github.com/coreos/etcd/etcdserver/api")
// Set the logging level to NOTICE as there is an INFO lvl log statement that runs every few seconds -> log spam
apiRepoLogger.SetRepoLogLevel(capnslog.NOTICE)
// TODO: Require root
SetupServer(Server)