mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Show build name and version at startup if available
This commit is contained in:
		
							parent
							
								
									3524c6eff6
								
							
						
					
					
						commit
						5149c6c349
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue