5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-25 23:01:38 +00:00

Show build name and version at startup if available

This commit is contained in:
Neil Alexander 2018-12-07 22:24:01 +00:00
parent 3524c6eff6
commit 5149c6c349
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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