Browse Source

Fix log bug

pull/60/head
Unknown 11 years ago
parent
commit
91e6db1bae
  1. 2
      modules/log/log.go
  2. 3
      routers/install.go

2
modules/log/log.go

@ -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) {

3
routers/install.go

@ -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)
} }

Loading…
Cancel
Save