Skip to content

Commit

Permalink
fix: Only log errors and above when benchmarking (sourcenetwork#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Mar 2, 2022
1 parent 882f00d commit e05cc86
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 e05cc86

Please sign in to comment.