Skip to content

Commit 3c53740

Browse files
authored
Correct the database.LOG_SQL default value in config cheat sheet (#26997) (#27002)
This is a manual backport of #26997 to v1.20.
1 parent da7d7e6 commit 3c53740

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/administration/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
443443
- `ITERATE_BUFFER_SIZE`: **50**: Internal buffer size for iterating.
444444
- `CHARSET`: **utf8mb4**: For MySQL only, either "utf8" or "utf8mb4". NOTICE: for "utf8mb4" you must use MySQL InnoDB > 5.6. Gitea is unable to check this.
445445
- `PATH`: **data/gitea.db**: For SQLite3 only, the database file path.
446-
- `LOG_SQL`: **true**: Log the executed SQL.
446+
- `LOG_SQL`: **false**: Log the executed SQL.
447447
- `DB_RETRIES`: **10**: How many ORM init / DB connect attempts allowed.
448448
- `DB_RETRY_BACKOFF`: **3s**: time.Duration to wait before trying another ORM init / DB connect attempt, if failure occurred.
449449
- `MAX_OPEN_CONNS` **0**: Database maximum open connections - default is 0, meaning there is no limit.

docs/content/administration/config-cheat-sheet.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ menu:
9898
- `SSL_MODE`: MySQL 或 PostgreSQL数据库是否启用SSL模式。
9999
- `CHARSET`: **utf8mb4**: 仅当数据库为 MySQL 时有效, 可以为 "utf8" 或 "utf8mb4"。注意:如果使用 "utf8mb4",你的 MySQL InnoDB 版本必须在 5.6 以上。
100100
- `PATH`: SQLite3 数据文件存放路径。
101-
- `LOG_SQL`: **true**: 显示生成的SQL,默认为真。
101+
- `LOG_SQL`: **false**: 显示生成的SQL,默认为真。
102102
- `MAX_IDLE_CONNS` **0**: 最大空闲数据库连接
103103
- `CONN_MAX_LIFETIME` **3s**: 数据库连接最大存活时间
104104

0 commit comments

Comments
 (0)