Skip to content

Commit

Permalink
Fix set log level in test framework (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxu19830126 authored Mar 9, 2022
1 parent 363f433 commit 335c583
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions raftstore/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ type testClusterOptions struct {

func newTestClusterOptions() *testClusterOptions {
return &testClusterOptions{
logLevel: zap.DebugLevel,
recreate: true,
dataOpts: &cpebble.Options{},
}
Expand All @@ -98,9 +99,6 @@ func (opts *testClusterOptions) adjust() {
if opts.nodes == 0 {
opts.nodes = 3
}
if opts.logLevel == 0 {
opts.logLevel = zap.DebugLevel
}
if opts.storageStatsReaderFunc == nil {
opts.storageStatsReaderFunc = func(s *store) storageStatsReader {
return &customStorageStatsReader{
Expand Down

0 comments on commit 335c583

Please sign in to comment.