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 /docs | |
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 'docs')
-rw-r--r-- | docs/content/doc/advanced/config-cheat-sheet.en-us.md | 1 | ||||
-rw-r--r-- | docs/content/doc/advanced/config-cheat-sheet.zh-cn.md | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md index 93b4da9d32..0ec48bd28c 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md +++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md @@ -121,6 +121,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`. - `PASSWD`: **\<empty\>**: Database user password. Use \`your password\` for quoting if you use special characters in the password. - `SSL_MODE`: **disable**: For PostgreSQL only. - `PATH`: **data/gitea.db**: For SQLite3 only, the database file path. +- `LOG_SQL`: **true**: Log the executed SQL. ## Indexer (`indexer`) diff --git a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md index 6320d6a437..09862cc3b7 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md +++ b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md @@ -80,6 +80,7 @@ menu: - `PASSWD`: 数据库用户密码。 - `SSL_MODE`: PostgreSQL数据库是否启用SSL模式。 - `PATH`: Tidb 或者 SQLite3 数据文件存放路径。 +- `LOG_SQL`: **true**: 显示生成的SQL,默认为真。 ## Security (`security`) |