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 --- modules/setting/setting.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/setting') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 9ef175d20e..9ba3e5a666 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -159,6 +159,7 @@ var ( UseMSSQL bool UsePostgreSQL bool UseTiDB bool + LogSQL bool // Indexer settings Indexer struct { @@ -931,6 +932,7 @@ func NewContext() { } } IterateBufferSize = Cfg.Section("database").Key("ITERATE_BUFFER_SIZE").MustInt(50) + LogSQL = Cfg.Section("database").Key("LOG_SQL").MustBool(true) sec = Cfg.Section("attachment") AttachmentPath = sec.Key("PATH").MustString(path.Join(AppDataPath, "attachments")) -- cgit v1.2.3