aboutsummaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-03-30 22:49:46 +0800
committerGitHub <noreply@github.com>2018-03-30 22:49:46 +0800
commitd877bf7e15ebd5d9a74e58f3999e3276e76fa15e (patch)
tree5534d0ff2a65ae1d17318476e1aae164eb2739ec /models/models.go
parent45d1fc03cb043b585c81d15163184be7691f5fc8 (diff)
downloadgitea-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.go2
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
}