mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Merge setting.InitXXX into one function with options (#24389)
This PR will merge 3 Init functions on setting packages as 1 and introduce an options struct.
This commit is contained in:
		@@ -62,8 +62,7 @@ func setup(ctx context.Context, debug bool) {
 | 
			
		||||
	} else {
 | 
			
		||||
		_ = log.NewLogger(1000, "console", "console", `{"level":"fatal","stacktracelevel":"NONE","stderr":true}`)
 | 
			
		||||
	}
 | 
			
		||||
	setting.InitProviderFromExistingFile()
 | 
			
		||||
	setting.LoadCommonSettings()
 | 
			
		||||
	setting.Init(&setting.Options{})
 | 
			
		||||
	if debug {
 | 
			
		||||
		setting.RunMode = "dev"
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user