diff --git a/modules/log/log.go b/modules/log/log.go index f00675481d..65150237d5 100644 --- a/modules/log/log.go +++ b/modules/log/log.go @@ -15,7 +15,7 @@ var ( ) func init() { - NewLogger(10000, "console", `{"level": 0}`) + NewLogger(0, "console", `{"level": 0}`) } func NewLogger(bufLen int64, mode, config string) { diff --git a/routers/install.go b/routers/install.go index 28c2d87f71..6bdae2afd5 100644 --- a/routers/install.go +++ b/routers/install.go @@ -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) }