Skip to content

Commit

Permalink
use the log flag on zerologer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Feb 8, 2024
1 parent a584b4d commit 85e1d42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
"path/filepath"

"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/grpc/node"
"github.com/cosmos/cosmos-sdk/runtime"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
Expand All @@ -14,6 +15,7 @@ import (
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types"
"github.com/lavanet/lava/utils"
"github.com/lavanet/lava/x/fixationstore"
fixationkeeper "github.com/lavanet/lava/x/fixationstore/keeper"
fixationtypes "github.com/lavanet/lava/x/fixationstore/types"
Expand Down Expand Up @@ -329,6 +331,9 @@ func New(
cdc := encodingConfig.Amino
interfaceRegistry := encodingConfig.InterfaceRegistry

level := appOpts.Get(flags.FlagLogLevel)
utils.SetGlobalLoggingLevel(cast.ToString(level))

bApp := baseapp.NewBaseApp(Name, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...)
bApp.SetCommitMultiStoreTracer(traceStore)
bApp.SetVersion(version.Version)
Expand Down

0 comments on commit 85e1d42

Please sign in to comment.