Skip to content

Commit

Permalink
renes fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Oct 11, 2021
1 parent f1c24ad commit 8082ae2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/celestia/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func run() error {
}

var rootCmd = &cobra.Command{
Use: "celestia [subcommand]",
Use: "celestia [ full || light ] [subcommand]",
Short: `
/ ____/__ / /__ _____/ /_(_)___ _
/ / / _ \/ / _ \/ ___/ __/ / __ /
Expand Down
6 changes: 3 additions & 3 deletions node/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand All @@ -73,6 +72,7 @@ func InitWith(path string, tp Type, cfg *Config) error {
return core.Init(corePath)
}

log.Info("Node Repository initialized")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8082ae2

Please sign in to comment.