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:
Lunny Xiao
2018-03-30 22:49:46 +08:00
committed by GitHub
parent 45d1fc03cb
commit d877bf7e15
5 changed files with 7 additions and 1 deletions

View File

@ -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
}