From a218f0d588bca091fd2b971d6ed93b9e20f9a8ab Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Mon, 2 Dec 2024 10:24:47 -0500 Subject: [PATCH] fix(cmd): set defaults for command output --- cmd/celestia-appd/cmd/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/celestia-appd/cmd/root.go b/cmd/celestia-appd/cmd/root.go index f8d57040fb..581ce3592e 100644 --- a/cmd/celestia-appd/cmd/root.go +++ b/cmd/celestia-appd/cmd/root.go @@ -56,6 +56,9 @@ func NewRootCmd() *cobra.Command { rootCommand := &cobra.Command{ Use: "celestia-appd", PersistentPreRunE: func(command *cobra.Command, _ []string) error { + command.SetOut(command.OutOrStdout()) + command.SetErr(command.ErrOrStderr()) + clientContext, err := client.ReadPersistentCommandFlags(initClientContext, command.Flags()) if err != nil { return err