Skip to content

Commit 99e928b

Browse files
committed
nsqd/bench: warning log on benchmarks
1 parent 8680338 commit 99e928b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nsqd/topic_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ func BenchmarkTopicPut(b *testing.B) {
232232
topicName := "bench_topic_put" + strconv.Itoa(b.N)
233233
opts := NewOptions()
234234
opts.Logger = test.NewTestLogger(b)
235+
opts.LogLevel = LOG_WARN
235236
opts.MemQueueSize = int64(b.N)
236237
_, _, nsqd := mustStartNSQD(opts)
237238
defer os.RemoveAll(opts.DataPath)
@@ -251,6 +252,7 @@ func BenchmarkTopicToChannelPut(b *testing.B) {
251252
channelName := "bench"
252253
opts := NewOptions()
253254
opts.Logger = test.NewTestLogger(b)
255+
opts.LogLevel = LOG_WARN
254256
opts.MemQueueSize = int64(b.N)
255257
_, _, nsqd := mustStartNSQD(opts)
256258
defer os.RemoveAll(opts.DataPath)

0 commit comments

Comments
 (0)