mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	print error log to client side when dev mode
This commit is contained in:
		@@ -76,6 +76,9 @@ func fail(userMessage, logMessage string, args ...interface{}) {
 | 
			
		||||
	fmt.Fprintln(os.Stderr, "Gogs:", userMessage)
 | 
			
		||||
 | 
			
		||||
	if len(logMessage) > 0 {
 | 
			
		||||
		if !setting.ProdMode {
 | 
			
		||||
			fmt.Fprintf(os.Stderr, logMessage, args...)
 | 
			
		||||
		}
 | 
			
		||||
		log.GitLogger.Fatal(3, logMessage, args...)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user