Skip to content

Commit

Permalink
set log level for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Sep 16, 2023
1 parent e3989ff commit 1cfb930
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion benchmarks/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
abci "github.com/cometbft/cometbft/abci/types"
cmtypes "github.com/cometbft/cometbft/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/rs/zerolog"
"github.com/stretchr/testify/require"

"cosmossdk.io/log"
Expand All @@ -33,7 +34,10 @@ import (
)

func setup(db dbm.DB, withGenesis bool, invCheckPeriod uint, opts ...wasmkeeper.Option) (*app.WasmApp, app.GenesisState) { //nolint:unparam
wasmApp := app.NewWasmApp(log.NewLogger(os.Stdout), db, nil, true, simtestutil.EmptyAppOptions{}, nil)

logLevel := log.LevelOption(zerolog.InfoLevel)

wasmApp := app.NewWasmApp(log.NewLogger(os.Stdout, logLevel), db, nil, true, simtestutil.EmptyAppOptions{}, nil)

if withGenesis {
return wasmApp, wasmApp.DefaultGenesis()
Expand Down

0 comments on commit 1cfb930

Please sign in to comment.