Skip to content

Commit

Permalink
Log a fatal before exit if node cannot be created (#3375)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald authored Sep 9, 2024
1 parent 83c6060 commit 7c0a6c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func New(config node.Config) (App, error) {

n, err := node.New(&config, logFactory, log)
if err != nil {
log.Fatal("failed to initialize node", zap.Error(err))
log.Stop()
logFactory.Close()
return nil, fmt.Errorf("failed to initialize node: %w", err)
Expand Down

0 comments on commit 7c0a6c7

Please sign in to comment.