From 91e6db1baed35e2b473504cd2edabcc3f2bcba95 Mon Sep 17 00:00:00 2001
From: Unknown <joe2010xtmf@163.com>
Date: Tue, 1 Apr 2014 00:07:25 -0400
Subject: [PATCH] Fix log bug

---
 modules/log/log.go | 2 +-
 routers/install.go | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/log/log.go b/modules/log/log.go
index f00675481..65150237d 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 28c2d87f7..6bdae2afd 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)
 		}