From 640b2ca83449304988f59cd900fd66719c49c3d0 Mon Sep 17 00:00:00 2001 From: mrostamii Date: Mon, 2 Oct 2023 17:28:44 +0330 Subject: [PATCH 1/2] fix: log/service stopped - was in wrong section, any other subcommand have affected --- cmd/heimdalld/service/service.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/heimdalld/service/service.go b/cmd/heimdalld/service/service.go index 3fe70f48d..15803b697 100644 --- a/cmd/heimdalld/service/service.go +++ b/cmd/heimdalld/service/service.go @@ -206,8 +206,6 @@ func NewHeimdallService(pCtx context.Context, args []string) { // Note: Handle with #870 panic(err) } - - logger.Info("Heimdall services stopped") } func getNewApp(serverCtx *server.Context) func(logger log.Logger, db dbm.DB, storeTracer io.Writer) abci.Application { @@ -531,6 +529,7 @@ func startInProcess(cmd *cobra.Command, shutdownCtx context.Context, ctx *server return err } + logger.Info("Heimdall services stopped") return nil } From 8de33207801684d34c8dd6a4aa4de9380dd3e797 Mon Sep 17 00:00:00 2001 From: mrostamii Date: Thu, 12 Oct 2023 10:11:11 +0330 Subject: [PATCH 2/2] fix: wsl error - added an empty line before the `return nil` statement --- cmd/heimdalld/service/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/heimdalld/service/service.go b/cmd/heimdalld/service/service.go index 15803b697..e4b4aef44 100644 --- a/cmd/heimdalld/service/service.go +++ b/cmd/heimdalld/service/service.go @@ -530,6 +530,7 @@ func startInProcess(cmd *cobra.Command, shutdownCtx context.Context, ctx *server } logger.Info("Heimdall services stopped") + return nil }