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

No files matched your search

+1 -1
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
}