added server logging to file, added logging and formatting to info and lock commands
This commit is contained in:
		@@ -40,6 +40,10 @@ func ValidateConfig(conf *GvcServerConfig, configPath string, version string) er
 | 
			
		||||
		fmt.Printf("No version found, inputing current server version: %s\n", version)
 | 
			
		||||
		conf.Version = version
 | 
			
		||||
	}
 | 
			
		||||
	if conf.LogFile == "" { // If no log file specified, set log location
 | 
			
		||||
		fmt.Printf("No logfile found in config, setting it to: gvclog.log :in root dir:")
 | 
			
		||||
		conf.LogFile = "gvclog.log"
 | 
			
		||||
	}
 | 
			
		||||
	if conf.RepoRootPath == "" {
 | 
			
		||||
		fmt.Println("Repo root path: ", conf.RepoRootPath)
 | 
			
		||||
		path, err := os.Getwd()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user