mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-24 18:10:52 +00:00
models: fix XORM API break
cmd/web.go: check version after load config
This commit is contained in:
parent
a38e4a0b02
commit
685ed1f807
4 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue