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