From 692b92c2d82e7abce94ee97fe2c3f8550f5f3e02 Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 18 Sep 2020 15:13:46 +0000 Subject: [PATCH] improve logging --- templates/gitea.ini.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index 5c5319b..17338e5 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -85,7 +85,10 @@ PASSWD = {{ gitea_db_password }} ; For MySQL, either "false" (default), "true", or "skip-verify" SSL_MODE = {{ gitea_db_ssl }} ; For "sqlite3" and "tidb", use an absolute path when you start gitea as service -PATH = {{ gitea_db_path }} +PATH = {{ gitea_db_path }} +{% if gitea_log_only_warning %} +LOG_SQL = false +{% endif %} [indexer] ; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve @@ -192,6 +195,7 @@ ROOT_PATH = {{ gitea_home }}/log ; Use comma to separate multiple modes, e.g. "console, file" {% if gitea_log_systemd %} MODE = console +MACARON = console {% else %} MODE = file {% endif %}