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.
This commit is contained in:
Yicheng Qin 2015-08-23 21:16:18 -07:00
parent 97b211c8ba
commit 3702be476b

View File

@ -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) {