aboutsummaryrefslogtreecommitdiffstats
path: root/docker/root
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-10-10 16:19:50 +0100
committerGitHub <noreply@github.com>2020-10-10 18:19:50 +0300
commitd65cd5677af3df5d616bf48dfd4be354e23c184f (patch)
tree1cd380ca877ec5594827a1b969c9fae5a54f6e11 /docker/root
parent1c523e212913cdb6fc2b0709af7f4c910d1728c8 (diff)
downloadgitea-d65cd5677af3df5d616bf48dfd4be354e23c184f.tar.gz
gitea-d65cd5677af3df5d616bf48dfd4be354e23c184f.zip
Change default log configuration (#13088)
* Change default log configuration This PR changes the install page and the docker default logging configuration to match the suggested configuration that I repeatedly end up suggesting on issues. It further improves the logging configuration docs to recommend specific instructions for how to configure logs for posting to issues. Signed-off-by: Andrew Thornton <art27@cantab.net> * Update docs/content/doc/advanced/logging-documentation.en-us.md
Diffstat (limited to 'docker/root')
-rw-r--r--docker/root/etc/templates/app.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/root/etc/templates/app.ini b/docker/root/etc/templates/app.ini
index 9b23c1270d..1a831a6d10 100644
--- a/docker/root/etc/templates/app.ini
+++ b/docker/root/etc/templates/app.ini
@@ -29,6 +29,7 @@ HOST = $DB_HOST
NAME = $DB_NAME
USER = $DB_USER
PASSWD = $DB_PASSWD
+LOG_SQL = false
[indexer]
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
@@ -44,6 +45,11 @@ REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
PATH = /data/gitea/attachments
[log]
+MODE = console
+LEVEL = info
+REDIRECT_MACARON_LOG = true
+MACARON = console
+ROUTER = console
ROOT_PATH = /data/gitea/log
[security]