forked from forgejo/forgejo
Add config option to enable or disable log executed SQL (#3726)
* add config option to enable or disable log executed SQL * rename ShowSQL to LogSQL
This commit is contained in:
parent
45d1fc03cb
commit
d877bf7e15
5 changed files with 7 additions and 1 deletions
|
@ -270,7 +270,7 @@ func SetEngine() (err error) {
|
|||
// WARNING: for serv command, MUST remove the output to os.stdout,
|
||||
// so use log file to instead print to stdout.
|
||||
x.SetLogger(log.XORMLogger)
|
||||
x.ShowSQL(true)
|
||||
x.ShowSQL(setting.LogSQL)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue