forked from forgejo/forgejo
Make Xorm log configurable (#174)
* make xorm log configable * bug fixed for other sub commands except web * rebase and fix xorm log * bug fix for TrimSpace
This commit is contained in:
parent
d4b752def9
commit
04fdeb9d8d
5 changed files with 231 additions and 17 deletions
|
@ -74,6 +74,8 @@ func runCreateUser(c *cli.Context) error {
|
|||
|
||||
setting.NewContext()
|
||||
models.LoadConfigs()
|
||||
|
||||
setting.NewXORMLogService(false)
|
||||
if err := models.SetEngine(); err != nil {
|
||||
return fmt.Errorf("models.SetEngine: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue