mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
models: fix XORM API break
cmd/web.go: check version after load config
This commit is contained in:
@@ -121,7 +121,7 @@ func SetEngine() (err error) {
|
||||
if err != nil {
|
||||
return fmt.Errorf("models.init(fail to create xorm.log): %v", err)
|
||||
}
|
||||
x.Logger = xorm.NewSimpleLogger(f)
|
||||
x.SetLogger(xorm.NewSimpleLogger(f))
|
||||
|
||||
x.ShowSQL = true
|
||||
x.ShowInfo = true
|
||||
|
Reference in New Issue
Block a user