diff --git a/app/app.go b/app/app.go index 1862b916b2..3066adb0a3 100644 --- a/app/app.go +++ b/app/app.go @@ -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" @@ -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" @@ -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)