Skip to content

Commit 335c583

Browse files
Fix set log level in test framework (#699)
1 parent 363f433 commit 335c583

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

raftstore/testutil.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ type testClusterOptions struct {
8686

8787
func newTestClusterOptions() *testClusterOptions {
8888
return &testClusterOptions{
89+
logLevel: zap.DebugLevel,
8990
recreate: true,
9091
dataOpts: &cpebble.Options{},
9192
}
@@ -98,9 +99,6 @@ func (opts *testClusterOptions) adjust() {
9899
if opts.nodes == 0 {
99100
opts.nodes = 3
100101
}
101-
if opts.logLevel == 0 {
102-
opts.logLevel = zap.DebugLevel
103-
}
104102
if opts.storageStatsReaderFunc == nil {
105103
opts.storageStatsReaderFunc = func(s *store) storageStatsReader {
106104
return &customStorageStatsReader{

0 commit comments

Comments
 (0)