提交 4686db67 编写于 作者: D dlorenc 提交者: GitHub

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

Fixed spam caused by etcdserver/api/v2http logging through capnslog, …
...@@ -21,6 +21,7 @@ import ( ...@@ -21,6 +21,7 @@ import (
"os" "os"
"os/signal" "os/signal"
"github.com/coreos/pkg/capnslog"
"k8s.io/kubernetes/pkg/capabilities" "k8s.io/kubernetes/pkg/capabilities"
"k8s.io/kubernetes/pkg/kubelet/types" "k8s.io/kubernetes/pkg/kubelet/types"
"k8s.io/minikube/pkg/localkube" "k8s.io/minikube/pkg/localkube"
...@@ -37,6 +38,11 @@ func StartLocalkube() { ...@@ -37,6 +38,11 @@ func StartLocalkube() {
os.Exit(0) 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 // TODO: Require root
SetupServer(Server) SetupServer(Server)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册