diff --git a/cmd/celestia/main.go b/cmd/celestia/main.go index ce7c19ac7b..6643762709 100644 --- a/cmd/celestia/main.go +++ b/cmd/celestia/main.go @@ -26,7 +26,7 @@ func run() error { } var rootCmd = &cobra.Command{ - Use: "celestia [subcommand]", + Use: "celestia [ full || light ] [subcommand]", Short: ` / ____/__ / /__ _____/ /_(_)___ _ / / / _ \/ / _ \/ ___/ __/ / __ / diff --git a/node/init.go b/node/init.go index 0ebbc71494..03cb8263be 100644 --- a/node/init.go +++ b/node/init.go @@ -23,7 +23,6 @@ func InitWith(path string, tp Type, cfg *Config) error { return err } log.Infof("Initializing %s Node Repository over '%s'", tp, path) - defer log.Info("Node Repository initialized") err = initRoot(path) if err != nil { @@ -55,9 +54,9 @@ func InitWith(path string, tp Type, cfg *Config) error { if err != nil { return err } - log.Info("Saving config") + log.Infow("Saving config", "path", cfgPath) } else { - log.Info("Config already exists") + log.Infow("Config already exists", "path", cfgPath) } // TODO(@Wondertan): This is a lazy hack which prevents Core Repository to be generated for all case, and generates @@ -73,6 +72,7 @@ func InitWith(path string, tp Type, cfg *Config) error { return core.Init(corePath) } + log.Info("Node Repository initialized") return nil } diff --git a/node/node.go b/node/node.go index 65b708dd5d..70a065b039 100644 --- a/node/node.go +++ b/node/node.go @@ -78,7 +78,7 @@ func (n *Node) Start(ctx context.Context) error { err := n.app.Start(ctx) if err != nil { log.Errorf("starting %s Node: %s", n.Type, err) - return fmt.Errorf("node: faild to start: %w", err) + return fmt.Errorf("node: failed to start: %w", err) } log.Infof("started %s Node", n.Type)