mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix log bug
This commit is contained in:
		@@ -15,7 +15,7 @@ var (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	NewLogger(10000, "console", `{"level": 0}`)
 | 
			
		||||
	NewLogger(0, "console", `{"level": 0}`)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewLogger(bufLen int64, mode, config string) {
 | 
			
		||||
 
 | 
			
		||||
@@ -6,6 +6,7 @@ package routers
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"errors"
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"os"
 | 
			
		||||
	"strings"
 | 
			
		||||
 | 
			
		||||
@@ -42,7 +43,7 @@ func GlobalInit() {
 | 
			
		||||
 | 
			
		||||
	if base.InstallLock {
 | 
			
		||||
		if err := models.NewEngine(); err != nil {
 | 
			
		||||
			log.Error("%v", err)
 | 
			
		||||
			fmt.Println("%v", err)
 | 
			
		||||
			os.Exit(2)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user