mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Formatting and improving logs for config loading
This commit is contained in:
		
							parent
							
								
									6e14fdf0d3
								
							
						
					
					
						commit
						05db1b7109
					
				| @ -44,7 +44,7 @@ func main() { | ||||
| 	}) | ||||
| 
 | ||||
| 	if err := cli.LoadConfig(""); err != nil { | ||||
| 		log.Fatal().Err(err) | ||||
| 		log.Fatal().Caller().Err(err) | ||||
| 	} | ||||
| 
 | ||||
| 	machineOutput := cli.HasMachineOutputFlag() | ||||
|  | ||||
| @ -61,7 +61,11 @@ func (*Suite) TestConfigLoading(c *check.C) { | ||||
| 	c.Assert(viper.GetString("tls_letsencrypt_listen"), check.Equals, ":http") | ||||
| 	c.Assert(viper.GetString("tls_letsencrypt_challenge_type"), check.Equals, "HTTP-01") | ||||
| 	c.Assert(viper.GetStringSlice("dns_config.nameservers")[0], check.Equals, "1.1.1.1") | ||||
| 	c.Assert(cli.GetFileMode("unix_socket_permission"), check.Equals, fs.FileMode(0o770)) | ||||
| 	c.Assert( | ||||
| 		cli.GetFileMode("unix_socket_permission"), | ||||
| 		check.Equals, | ||||
| 		fs.FileMode(0o770), | ||||
| 	) | ||||
| } | ||||
| 
 | ||||
| func (*Suite) TestDNSConfigLoading(c *check.C) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user