From b0ac8e900881ff6e1518e07052a15174f2762554 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Tue, 25 Jun 2024 17:59:16 +0800 Subject: [PATCH] chore: improve wraning message --- modules/actions/module.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/actions/module.go b/modules/actions/module.go index 51825606e..2a41e9371 100644 --- a/modules/actions/module.go +++ b/modules/actions/module.go @@ -1,7 +1,7 @@ package actions import ( - "fmt" + "time" "github.com/cosmos/cosmos-sdk/codec" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" @@ -48,7 +48,10 @@ func NewModule(cfg config.Config, cdc codec.Codec, sources *modulestypes.Sources var node node.Node if cfg.Node.Type == nodeconfig.TypeLocal { - log.Err(fmt.Errorf("local node is not supported for actions module")) + log.Warn().Str("module", ModuleName).Msg("local node is not supported for actions module, please ensure actions module is removed from the configuration") + + // Sleep for 3 seconds to allow the user to see the warning + time.Sleep(3 * time.Second) } else { // Build the node txConfig := authtx.NewTxConfig(cdc, authtx.DefaultSignModes)