From 64b3018eeb277ad7295f4f5dc5f35d68f2601649 Mon Sep 17 00:00:00 2001 From: Brandon Weng <18161326+BrandonWeng@users.noreply.github.com> Date: Fri, 14 Apr 2023 10:30:34 -0400 Subject: [PATCH] logs --- server/start.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/server/start.go b/server/start.go index 7eb796bf..3f6d7c24 100644 --- a/server/start.go +++ b/server/start.go @@ -308,12 +308,11 @@ func startInProcess( if cpuProfile := ctx.Viper.GetString(flagCPUProfile); cpuProfile != "" { f, err := os.Create(cpuProfile) if err != nil { - return err + return fmt.Errorf("failed to create cpuProfile file %w", err) } - ctx.Logger.Info("starting CPU profiler", "profile", cpuProfile) if err := pprof.StartCPUProfile(f); err != nil { - return err + return fmt.Errorf("failed to start CPU Profiler %w", err) } cpuProfileCleanup = func() { @@ -369,17 +368,14 @@ func startInProcess( tracerProviderOptions, nodeMetricsProvider, ) - ctx.Logger.Info("really going to start new node") if err != nil { return fmt.Errorf("error creating node: %w", err) } if err := tmNode.Start(goCtx); err != nil { return fmt.Errorf("error starting node: %w", err) } - ctx.Logger.Info("started ABCI Tendermint") } - ctx.Logger.Info("starting GPRC") // Add the tx service to the gRPC router. We only need to register this // service if API or gRPC is enabled, and avoid doing so in the general // case, because it spawns a new local tendermint RPC client. @@ -394,7 +390,6 @@ func startInProcess( app.RegisterTendermintService(clientCtx) } - ctx.Logger.Info("starting API") var apiSrv *api.Server if config.API.Enable { clientCtx := clientCtx.WithHomeDir(home).WithChainID(clientCtx.ChainID)