From 32843fa8609be9efa0ea6b8fec2a45b786ed96bc Mon Sep 17 00:00:00 2001 From: aprindle Date: Wed, 29 Jun 2016 14:22:46 -0700 Subject: [PATCH] Fixed spam caused by etcdserver/api/v2http logging through capnslog, changed etcdserver/api logging to be for NOTICE lvl and above --- cmd/localkube/cmd/start.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/localkube/cmd/start.go b/cmd/localkube/cmd/start.go index 0ed73a38a..8f54cb05e 100644 --- a/cmd/localkube/cmd/start.go +++ b/cmd/localkube/cmd/start.go @@ -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) -- GitLab