Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed Sep 24, 2020
1 parent 725f3cb commit 819c134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/gitea.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ PASSWD = {{ gitea_db_password }}
SSL_MODE = {{ gitea_db_ssl }}
; For "sqlite3" and "tidb", use an absolute path when you start gitea as service
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
Expand Down Expand Up @@ -190,6 +193,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 %}
Expand Down

0 comments on commit 819c134

Please sign in to comment.