1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-26 05:05:51 +00:00

Fix log bug

This commit is contained in:
Unknown 2014-04-01 00:07:25 -04:00
parent 67bd2daa02
commit 91e6db1bae
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ var (
) )
func init() { func init() {
NewLogger(10000, "console", `{"level": 0}`) NewLogger(0, "console", `{"level": 0}`)
} }
func NewLogger(bufLen int64, mode, config string) { func NewLogger(bufLen int64, mode, config string) {

View File

@ -6,6 +6,7 @@ package routers
import ( import (
"errors" "errors"
"fmt"
"os" "os"
"strings" "strings"
@ -42,7 +43,7 @@ func GlobalInit() {
if base.InstallLock { if base.InstallLock {
if err := models.NewEngine(); err != nil { if err := models.NewEngine(); err != nil {
log.Error("%v", err) fmt.Println("%v", err)
os.Exit(2) os.Exit(2)
} }