mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-10 06:20:26 +00:00
Show build name and version at startup if available
This commit is contained in:
parent
3524c6eff6
commit
5149c6c349
@ -86,6 +86,14 @@ func GetBuildVersion() string {
|
|||||||
// DHT node.
|
// DHT node.
|
||||||
func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error {
|
func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error {
|
||||||
c.log = log
|
c.log = log
|
||||||
|
|
||||||
|
if buildName != "" {
|
||||||
|
c.log.Println("Build name:", buildName)
|
||||||
|
}
|
||||||
|
if buildVersion != "" {
|
||||||
|
c.log.Println("Build version:", buildVersion)
|
||||||
|
}
|
||||||
|
|
||||||
c.log.Println("Starting up...")
|
c.log.Println("Starting up...")
|
||||||
|
|
||||||
var boxPub boxPubKey
|
var boxPub boxPubKey
|
||||||
|
Loading…
Reference in New Issue
Block a user