1
0
Fork 0
forked from forgejo/forgejo

Move xorm logger bridge from log to models so that log module could be a standalone package (#6944)

* move xorm logger bridge from log to models so that log module could be a standalone package

* fix tests

* save logger on xorm log bridge
This commit is contained in:
Lunny Xiao 2019-05-14 15:04:07 +08:00 committed by Lauris BH
parent 0e057eb033
commit 8b36f01f45
3 changed files with 25 additions and 35 deletions

View file

@ -295,8 +295,5 @@ func NewXORMLogService(disableConsole bool) {
Cfg.Section("log").Key("XORM").MustString(",")
generateNamedLogger("xorm", options)
log.InitXORMLogger(LogSQL)
} else {
log.InitXORMLogger(false)
}
}