From 6f0771d2f6405a3a253ad66c15fefa92aec1e200 Mon Sep 17 00:00:00 2001 From: Xiang Date: Sun, 22 Oct 2017 16:09:06 -0700 Subject: [PATCH] clientv3: disable server logging for client testing --- clientv3/integration/logger_test.go | 2 +- clientv3/ordering/logger_test.go | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 clientv3/ordering/logger_test.go diff --git a/clientv3/integration/logger_test.go b/clientv3/integration/logger_test.go index 71922da38..a71330a41 100644 --- a/clientv3/integration/logger_test.go +++ b/clientv3/integration/logger_test.go @@ -17,5 +17,5 @@ package integration import "github.com/coreos/pkg/capnslog" func init() { - capnslog.SetGlobalLogLevel(capnslog.INFO) + capnslog.SetGlobalLogLevel(capnslog.CRITICAL) } diff --git a/clientv3/ordering/logger_test.go b/clientv3/ordering/logger_test.go new file mode 100644 index 000000000..7a1d71338 --- /dev/null +++ b/clientv3/ordering/logger_test.go @@ -0,0 +1,21 @@ +// Copyright 2017 The etcd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package ordering + +import "github.com/coreos/pkg/capnslog" + +func init() { + capnslog.SetGlobalLogLevel(capnslog.CRITICAL) +}