diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-03-30 22:49:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-30 22:49:46 +0800 |
commit | d877bf7e15ebd5d9a74e58f3999e3276e76fa15e (patch) | |
tree | 5534d0ff2a65ae1d17318476e1aae164eb2739ec /models/models.go | |
parent | 45d1fc03cb043b585c81d15163184be7691f5fc8 (diff) | |
download | gitea-d877bf7e15ebd5d9a74e58f3999e3276e76fa15e.tar.gz gitea-d877bf7e15ebd5d9a74e58f3999e3276e76fa15e.zip |
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
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go index 7738e1a3c2..b2f5e923e7 100644 --- a/models/models.go +++ b/models/models.go @@ -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 } |