فهرست منبع

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.
Yicheng Qin 10 سال پیش
والد
کامیت
3702be476b
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      integration/v2_http_kv_test.go

+ 3 - 2
integration/v2_http_kv_test.go

@@ -19,7 +19,6 @@ import (
 	"fmt"
 	"fmt"
 	"io"
 	"io"
 	"io/ioutil"
 	"io/ioutil"
-	"log"
 	"net"
 	"net"
 	"net/http"
 	"net/http"
 	"net/url"
 	"net/url"
@@ -27,10 +26,12 @@ import (
 	"strings"
 	"strings"
 	"testing"
 	"testing"
 	"time"
 	"time"
+
+	"github.com/coreos/etcd/Godeps/_workspace/src/github.com/coreos/pkg/capnslog"
 )
 )
 
 
 func init() {
 func init() {
-	log.SetOutput(ioutil.Discard)
+	capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
 }
 }
 
 
 func TestV2Set(t *testing.T) {
 func TestV2Set(t *testing.T) {