diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-01 00:07:25 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-01 00:07:25 -0400 |
commit | 91e6db1baed35e2b473504cd2edabcc3f2bcba95 (patch) | |
tree | 05af6a9f6809dac003f926050f3e4ba076822b5b | |
parent | 67bd2daa022fd2402d7aece4a7b54249fdb2f0f0 (diff) |
Fix log bug
-rw-r--r-- | modules/log/log.go | 2 | ||||
-rw-r--r-- | routers/install.go | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/log/log.go b/modules/log/log.go index f0067548..65150237 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 28c2d87f..6bdae2af 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) } |