From d877bf7e15ebd5d9a74e58f3999e3276e76fa15e Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 30 Mar 2018 22:49:46 +0800 Subject: 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 --- models/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') 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 } -- cgit v1.2.3