mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Fix #242
This commit is contained in:
parent
a0318db2f9
commit
302c863cda
14 changed files with 432 additions and 375 deletions
|
@ -14,7 +14,6 @@ import (
|
|||
"github.com/Unknwon/goconfig"
|
||||
"github.com/go-martini/martini"
|
||||
"github.com/go-xorm/xorm"
|
||||
qlog "github.com/qiniu/log"
|
||||
|
||||
"github.com/gogits/gogs/models"
|
||||
"github.com/gogits/gogs/modules/auth"
|
||||
|
@ -56,7 +55,7 @@ func GlobalInit() {
|
|||
|
||||
if setting.InstallLock {
|
||||
if err := models.NewEngine(); err != nil {
|
||||
qlog.Fatal(err)
|
||||
log.Fatal("Fail to initialize ORM engine: %v", err)
|
||||
}
|
||||
|
||||
models.HasEngine = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue