Skip to content

Commit

Permalink
Merge pull request etcd-io#6402 from gyuho/logger
Browse files Browse the repository at this point in the history
*: separate 'capnslog' log level setting
  • Loading branch information
xiang90 authored Sep 11, 2016
2 parents bfb9d83 + 03b9d6f commit 840f4d4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
21 changes: 21 additions & 0 deletions clientv3/integration/logger_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2016 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 integration

import "github.com/coreos/pkg/capnslog"

func init() {
capnslog.SetGlobalLogLevel(capnslog.INFO)
}
21 changes: 21 additions & 0 deletions integration/logger_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2016 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 integration

import "github.com/coreos/pkg/capnslog"

func init() {
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
}
5 changes: 0 additions & 5 deletions integration/v2_http_kv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ import (

"github.com/coreos/etcd/pkg/testutil"
"github.com/coreos/etcd/pkg/transport"
"github.com/coreos/pkg/capnslog"
)

func init() {
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
}

func TestV2Set(t *testing.T) {
defer testutil.AfterTest(t)
cl := NewCluster(t, 1)
Expand Down

0 comments on commit 840f4d4

Please sign in to comment.