summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-06 13:00:20 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-06 13:00:20 -0400
commit2846ff7d31fc93659a2e90fe869ff51c885decfa (patch)
tree07f6c991fb4e6e2d09a7aee331dc45ce4caa1364 /routers/install.go
parentd3a987eded8bf2d0afc35dce32238e59da8080a8 (diff)
downloadgitea-2846ff7d31fc93659a2e90fe869ff51c885decfa.tar.gz
gitea-2846ff7d31fc93659a2e90fe869ff51c885decfa.zip
Fix bug related to log
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/routers/install.go b/routers/install.go
index 48c1b5e134..1c4e6181d5 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -6,13 +6,13 @@ package routers
import (
"errors"
- "fmt"
"os"
"strings"
"github.com/Unknwon/goconfig"
"github.com/go-martini/martini"
"github.com/lunny/xorm"
+ qlog "github.com/qiniu/log"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/auth"
@@ -43,8 +43,7 @@ func GlobalInit() {
if base.InstallLock {
if err := models.NewEngine(); err != nil {
- fmt.Println(err)
- os.Exit(2)
+ qlog.Fatal(err)
}
models.HasEngine = true