From 1c00bb741d8d52a30fafa996959f46cede7acb80 Mon Sep 17 00:00:00 2001 From: Adam Tucker Date: Tue, 23 Jan 2024 20:49:20 -0700 Subject: [PATCH] add baseapp module key to logger --- runtime/builder.go | 3 ++- simapp/app.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/builder.go b/runtime/builder.go index 72bf965f708..026cb0878fa 100644 --- a/runtime/builder.go +++ b/runtime/builder.go @@ -4,6 +4,7 @@ import ( "encoding/json" "io" + "cosmossdk.io/log" dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/cosmos-sdk/baseapp" @@ -29,7 +30,7 @@ func (a *AppBuilder) Build(db dbm.DB, traceStore io.Writer, baseAppOptions ...fu baseAppOptions = append(baseAppOptions, option) } - bApp := baseapp.NewBaseApp(a.app.config.AppName, a.app.logger, db, nil, baseAppOptions...) + bApp := baseapp.NewBaseApp(a.app.config.AppName, a.app.logger.With(log.ModuleKey, "baseapp"), db, nil, baseAppOptions...) bApp.SetMsgServiceRouter(a.app.msgServiceRouter) bApp.SetCommitMultiStoreTracer(traceStore) bApp.SetVersion(version.Version) diff --git a/simapp/app.go b/simapp/app.go index 19a96ab211e..5c0b94d3129 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -248,7 +248,7 @@ func NewSimApp( } baseAppOptions = append(baseAppOptions, voteExtOp, baseapp.SetOptimisticExecution()) - bApp := baseapp.NewBaseApp(appName, logger, db, txConfig.TxDecoder(), baseAppOptions...) + bApp := baseapp.NewBaseApp(appName, logger.With(log.ModuleKey, "baseapp"), db, txConfig.TxDecoder(), baseAppOptions...) bApp.SetCommitMultiStoreTracer(traceStore) bApp.SetVersion(version.Version) bApp.SetInterfaceRegistry(interfaceRegistry)