improve logging
This commit is contained in:
parent
4abe8ae2bf
commit
692b92c2d8
1 changed files with 5 additions and 1 deletions
|
@ -85,7 +85,10 @@ PASSWD = {{ gitea_db_password }}
|
||||||
; For MySQL, either "false" (default), "true", or "skip-verify"
|
; For MySQL, either "false" (default), "true", or "skip-verify"
|
||||||
SSL_MODE = {{ gitea_db_ssl }}
|
SSL_MODE = {{ gitea_db_ssl }}
|
||||||
; For "sqlite3" and "tidb", use an absolute path when you start gitea as service
|
; 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]
|
[indexer]
|
||||||
; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
|
; 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"
|
; Use comma to separate multiple modes, e.g. "console, file"
|
||||||
{% if gitea_log_systemd %}
|
{% if gitea_log_systemd %}
|
||||||
MODE = console
|
MODE = console
|
||||||
|
MACARON = console
|
||||||
{% else %}
|
{% else %}
|
||||||
MODE = file
|
MODE = file
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue