Skip to content

Commit

Permalink
feat(nodebuilder): log node version on start (#3089)
Browse files Browse the repository at this point in the history
<!--
Thank you for submitting a pull request!

Please make sure you have reviewed our contributors guide before
submitting your
first PR.

Please ensure you've addressed or included references to any related
issues.

Tips:
- Use keywords like "closes" or "fixes" followed by an issue number to
automatically close related issues when the PR is merged (e.g., "closes
#123" or "fixes #123").
- Describe the changes made in the PR.
- Ensure the PR has one of the required tags (kind:fix, kind:misc,
kind:break!, kind:refactor, kind:feat, kind:deps, kind:docs, kind:ci,
kind:chore, kind:testing)

-->
Closes #2382

---
## Screenshot

![image](https://github.com/celestiaorg/celestia-node/assets/25278203/2c04a166-0d41-45df-8194-20cc51ef1ba1)

---------

Co-authored-by: ramin <raminkeene@gmail.com>
  • Loading branch information
Halimao and ramin committed Jan 16, 2024
1 parent 4083ea8 commit ad92edb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nodebuilder/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,12 @@ func (n *Node) Start(ctx context.Context) error {
return fmt.Errorf("node: failed to start: %w", err)
}

log.Infof("\n\n/_____/ /_____/ /_____/ /_____/ /_____/ \n\nStarted celestia DA node \nnode "+
"type: %s\nnetwork: %s\n\n/_____/ /_____/ /_____/ /_____/ /_____/ \n", strings.ToLower(n.Type.String()),
log.Infof("\n\n/_____/ /_____/ /_____/ /_____/ /_____/ \n\n"+
"Started celestia DA node \n"+
"node version: %s\nnode type: %s\nnetwork: %s\n\n"+
"/_____/ /_____/ /_____/ /_____/ /_____/ \n",
node.GetBuildInfo().SemanticVersion,
strings.ToLower(n.Type.String()),
n.Network)

addrs, err := peer.AddrInfoToP2pAddrs(host.InfoFromHost(n.Host))
Expand Down

0 comments on commit ad92edb

Please sign in to comment.