From d65cd5677af3df5d616bf48dfd4be354e23c184f Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 10 Oct 2020 16:19:50 +0100 Subject: 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 * Update docs/content/doc/advanced/logging-documentation.en-us.md --- docker/root/etc/templates/app.ini | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docker') 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] -- cgit v1.2.3