From 5149c6c349d6540772799259c6a0e30a3aa66f33 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 7 Dec 2018 22:24:01 +0000 Subject: [PATCH] Show build name and version at startup if available --- src/yggdrasil/core.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/yggdrasil/core.go b/src/yggdrasil/core.go index 54f1820..b57bd86 100644 --- a/src/yggdrasil/core.go +++ b/src/yggdrasil/core.go @@ -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