Skip to content

Commit

Permalink
Only log errors and above when benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Mar 1, 2022
1 parent 38c4b2c commit 92b6166
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bench/bench_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ var (
)

func init() {
logging.SetConfig(logging.Config{Level: logging.NewLogLevelOption(logging.Error)})

// create a consistent seed value for the random package
// so we don't have random fluctuations between runs
// (specifically thinking about the fixture generation stuff)
Expand Down

0 comments on commit 92b6166

Please sign in to comment.