From 3702be476b34a009497731b066ed745edd0296b6 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Sun, 23 Aug 2015 21:16:18 -0700 Subject: [PATCH] integration: only print critical log This limits the logs printed out in integration test, so it will not have log flood and help us read fatal log in travis. --- integration/v2_http_kv_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration/v2_http_kv_test.go b/integration/v2_http_kv_test.go index f96c118fe..e2db2414a 100644 --- a/integration/v2_http_kv_test.go +++ b/integration/v2_http_kv_test.go @@ -19,7 +19,6 @@ import ( "fmt" "io" "io/ioutil" - "log" "net" "net/http" "net/url" @@ -27,10 +26,12 @@ import ( "strings" "testing" "time" + + "github.com/coreos/etcd/Godeps/_workspace/src/github.com/coreos/pkg/capnslog" ) func init() { - log.SetOutput(ioutil.Discard) + capnslog.SetGlobalLogLevel(capnslog.CRITICAL) } func TestV2Set(t *testing.T) {