From 818515cc052a1d34c1af36fd541bc2e3eba9df95 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 8 Jun 2020 15:56:28 +0200 Subject: [PATCH] server/gitea: Reworked logging configuration to contain (only) required information --- roles/server/gitea/templates/app.ini | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/server/gitea/templates/app.ini b/roles/server/gitea/templates/app.ini index abf7d7e..1e17b7b 100644 --- a/roles/server/gitea/templates/app.ini +++ b/roles/server/gitea/templates/app.ini @@ -165,7 +165,6 @@ SSH_EXPOSE_ANONYMOUS = false MINIMUM_KEY_SIZE_CHECK = false ; Disable CDN even in "prod" mode OFFLINE_MODE = {{ gitea_server_offline_mode | ternary('true', 'false') }} -DISABLE_ROUTER_LOG = false ; Root directory containing templates and static files. ; default is the path where Gitea is executed STATIC_ROOT_PATH = @@ -560,15 +559,16 @@ ROOT_PATH = ; Use comma to separate multiple modes, e.g. "console, file" MODE = console ; Buffer length of the channel, keep it as it is if you don't know what it is. -BUFFER_LEN = 10000 +;BUFFER_LEN = 10000 REDIRECT_MACARON_LOG = true MACARON = , ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info" -ROUTER_LOG_LEVEL = Debug -ROUTER = , -ENABLE_ACCESS_LOG = false -ACCESS_LOG_TEMPLATE = {% raw %}{{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"{% endraw %} -ACCESS = , +;ROUTER_LOG_LEVEL = Info +DISABLE_ROUTER_LOG = true +;ROUTER = , +;ENABLE_ACCESS_LOG = false +;ACCESS_LOG_TEMPLATE = {% raw %}{{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"{% endraw %} +;ACCESS = , ENABLE_XORM_LOG = true XORM = , @@ -579,7 +579,7 @@ STACKTRACE_LEVEL = None ; For "console" mode only [log.console] -FLAGS = level +FLAGS = level,medfile LEVEL = STDERR = false COLORIZE = false